home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cfengine-1.5.3 / configure < prev    next >
Encoding:
Text File  |  1999-10-25  |  148.6 KB  |  5,270 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-DCE            support for DCE and ACLs"
  16. ac_help="$ac_help
  17.   --with-lockdir=LOCKDIR  directory where lockfiles should go "
  18. ac_help="$ac_help
  19.   --with-logdir=LOGDIR  directory where logfiles should go "
  20.  
  21. # Initialize some variables set by options.
  22. # The variables have the same names as the options, with
  23. # dashes changed to underlines.
  24. build=NONE
  25. cache_file=./config.cache
  26. exec_prefix=NONE
  27. host=NONE
  28. no_create=
  29. nonopt=NONE
  30. no_recursion=
  31. prefix=NONE
  32. program_prefix=NONE
  33. program_suffix=NONE
  34. program_transform_name=s,x,x,
  35. silent=
  36. site=
  37. srcdir=
  38. target=NONE
  39. verbose=
  40. x_includes=NONE
  41. x_libraries=NONE
  42. bindir='${exec_prefix}/bin'
  43. sbindir='${exec_prefix}/sbin'
  44. libexecdir='${exec_prefix}/libexec'
  45. datadir='${prefix}/share'
  46. sysconfdir='${prefix}/etc'
  47. sharedstatedir='${prefix}/com'
  48. localstatedir='${prefix}/var'
  49. libdir='${exec_prefix}/lib'
  50. includedir='${prefix}/include'
  51. oldincludedir='/usr/include'
  52. infodir='${prefix}/info'
  53. mandir='${prefix}/man'
  54.  
  55. # Initialize some other variables.
  56. subdirs=
  57. MFLAGS= MAKEFLAGS=
  58. # Maximum number of lines to put in a shell here document.
  59. ac_max_here_lines=12
  60.  
  61. ac_prev=
  62. for ac_option
  63. do
  64.  
  65.   # If the previous option needs an argument, assign it.
  66.   if test -n "$ac_prev"; then
  67.     eval "$ac_prev=\$ac_option"
  68.     ac_prev=
  69.     continue
  70.   fi
  71.  
  72.   case "$ac_option" in
  73.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  74.   *) ac_optarg= ;;
  75.   esac
  76.  
  77.   # Accept the important Cygnus configure options, so we can diagnose typos.
  78.  
  79.   case "$ac_option" in
  80.  
  81.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  82.     ac_prev=bindir ;;
  83.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  84.     bindir="$ac_optarg" ;;
  85.  
  86.   -build | --build | --buil | --bui | --bu)
  87.     ac_prev=build ;;
  88.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  89.     build="$ac_optarg" ;;
  90.  
  91.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  92.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  93.     ac_prev=cache_file ;;
  94.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  95.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  96.     cache_file="$ac_optarg" ;;
  97.  
  98.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  99.     ac_prev=datadir ;;
  100.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  101.   | --da=*)
  102.     datadir="$ac_optarg" ;;
  103.  
  104.   -disable-* | --disable-*)
  105.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  106.     # Reject names that are not valid shell variable names.
  107.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  108.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  109.     fi
  110.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  111.     eval "enable_${ac_feature}=no" ;;
  112.  
  113.   -enable-* | --enable-*)
  114.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  115.     # Reject names that are not valid shell variable names.
  116.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  117.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  118.     fi
  119.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  120.     case "$ac_option" in
  121.       *=*) ;;
  122.       *) ac_optarg=yes ;;
  123.     esac
  124.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  125.  
  126.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  127.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  128.   | --exec | --exe | --ex)
  129.     ac_prev=exec_prefix ;;
  130.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  131.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  132.   | --exec=* | --exe=* | --ex=*)
  133.     exec_prefix="$ac_optarg" ;;
  134.  
  135.   -gas | --gas | --ga | --g)
  136.     # Obsolete; use --with-gas.
  137.     with_gas=yes ;;
  138.  
  139.   -help | --help | --hel | --he)
  140.     # Omit some internal or obsolete options to make the list less imposing.
  141.     # This message is too long to be a string in the A/UX 3.1 sh.
  142.     cat << EOF
  143. Usage: configure [options] [host]
  144. Options: [defaults in brackets after descriptions]
  145. Configuration:
  146.   --cache-file=FILE       cache test results in FILE
  147.   --help                  print this message
  148.   --no-create             do not create output files
  149.   --quiet, --silent       do not print \`checking...' messages
  150.   --version               print the version of autoconf that created configure
  151. Directory and file names:
  152.   --prefix=PREFIX         install architecture-independent files in PREFIX
  153.                           [$ac_default_prefix]
  154.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  155.                           [same as prefix]
  156.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  157.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  158.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  159.   --datadir=DIR           read-only architecture-independent data in DIR
  160.                           [PREFIX/share]
  161.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  162.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  163.                           [PREFIX/com]
  164.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  165.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  166.   --includedir=DIR        C header files in DIR [PREFIX/include]
  167.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  168.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  169.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  170.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  171.   --program-prefix=PREFIX prepend PREFIX to installed program names
  172.   --program-suffix=SUFFIX append SUFFIX to installed program names
  173.   --program-transform-name=PROGRAM
  174.                           run sed PROGRAM on installed program names
  175. EOF
  176.     cat << EOF
  177. Host type:
  178.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  179.   --host=HOST             configure for HOST [guessed]
  180.   --target=TARGET         configure for TARGET [TARGET=HOST]
  181. Features and packages:
  182.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  183.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  184.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  185.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  186.   --x-includes=DIR        X include files are in DIR
  187.   --x-libraries=DIR       X library files are in DIR
  188. EOF
  189.     if test -n "$ac_help"; then
  190.       echo "--enable and --with options recognized:$ac_help"
  191.     fi
  192.     exit 0 ;;
  193.  
  194.   -host | --host | --hos | --ho)
  195.     ac_prev=host ;;
  196.   -host=* | --host=* | --hos=* | --ho=*)
  197.     host="$ac_optarg" ;;
  198.  
  199.   -includedir | --includedir | --includedi | --included | --include \
  200.   | --includ | --inclu | --incl | --inc)
  201.     ac_prev=includedir ;;
  202.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  203.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  204.     includedir="$ac_optarg" ;;
  205.  
  206.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  207.     ac_prev=infodir ;;
  208.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  209.     infodir="$ac_optarg" ;;
  210.  
  211.   -libdir | --libdir | --libdi | --libd)
  212.     ac_prev=libdir ;;
  213.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  214.     libdir="$ac_optarg" ;;
  215.  
  216.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  217.   | --libexe | --libex | --libe)
  218.     ac_prev=libexecdir ;;
  219.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  220.   | --libexe=* | --libex=* | --libe=*)
  221.     libexecdir="$ac_optarg" ;;
  222.  
  223.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  224.   | --localstate | --localstat | --localsta | --localst \
  225.   | --locals | --local | --loca | --loc | --lo)
  226.     ac_prev=localstatedir ;;
  227.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  228.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  229.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  230.     localstatedir="$ac_optarg" ;;
  231.  
  232.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  233.     ac_prev=mandir ;;
  234.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  235.     mandir="$ac_optarg" ;;
  236.  
  237.   -nfp | --nfp | --nf)
  238.     # Obsolete; use --without-fp.
  239.     with_fp=no ;;
  240.  
  241.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  242.   | --no-cr | --no-c)
  243.     no_create=yes ;;
  244.  
  245.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  246.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  247.     no_recursion=yes ;;
  248.  
  249.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  250.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  251.   | --oldin | --oldi | --old | --ol | --o)
  252.     ac_prev=oldincludedir ;;
  253.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  254.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  255.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  256.     oldincludedir="$ac_optarg" ;;
  257.  
  258.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  259.     ac_prev=prefix ;;
  260.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  261.     prefix="$ac_optarg" ;;
  262.  
  263.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  264.   | --program-pre | --program-pr | --program-p)
  265.     ac_prev=program_prefix ;;
  266.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  267.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  268.     program_prefix="$ac_optarg" ;;
  269.  
  270.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  271.   | --program-suf | --program-su | --program-s)
  272.     ac_prev=program_suffix ;;
  273.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  274.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  275.     program_suffix="$ac_optarg" ;;
  276.  
  277.   -program-transform-name | --program-transform-name \
  278.   | --program-transform-nam | --program-transform-na \
  279.   | --program-transform-n | --program-transform- \
  280.   | --program-transform | --program-transfor \
  281.   | --program-transfo | --program-transf \
  282.   | --program-trans | --program-tran \
  283.   | --progr-tra | --program-tr | --program-t)
  284.     ac_prev=program_transform_name ;;
  285.   -program-transform-name=* | --program-transform-name=* \
  286.   | --program-transform-nam=* | --program-transform-na=* \
  287.   | --program-transform-n=* | --program-transform-=* \
  288.   | --program-transform=* | --program-transfor=* \
  289.   | --program-transfo=* | --program-transf=* \
  290.   | --program-trans=* | --program-tran=* \
  291.   | --progr-tra=* | --program-tr=* | --program-t=*)
  292.     program_transform_name="$ac_optarg" ;;
  293.  
  294.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  295.   | -silent | --silent | --silen | --sile | --sil)
  296.     silent=yes ;;
  297.  
  298.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  299.     ac_prev=sbindir ;;
  300.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  301.   | --sbi=* | --sb=*)
  302.     sbindir="$ac_optarg" ;;
  303.  
  304.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  305.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  306.   | --sharedst | --shareds | --shared | --share | --shar \
  307.   | --sha | --sh)
  308.     ac_prev=sharedstatedir ;;
  309.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  310.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  311.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  312.   | --sha=* | --sh=*)
  313.     sharedstatedir="$ac_optarg" ;;
  314.  
  315.   -site | --site | --sit)
  316.     ac_prev=site ;;
  317.   -site=* | --site=* | --sit=*)
  318.     site="$ac_optarg" ;;
  319.  
  320.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  321.     ac_prev=srcdir ;;
  322.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  323.     srcdir="$ac_optarg" ;;
  324.  
  325.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  326.   | --syscon | --sysco | --sysc | --sys | --sy)
  327.     ac_prev=sysconfdir ;;
  328.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  329.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  330.     sysconfdir="$ac_optarg" ;;
  331.  
  332.   -target | --target | --targe | --targ | --tar | --ta | --t)
  333.     ac_prev=target ;;
  334.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  335.     target="$ac_optarg" ;;
  336.  
  337.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  338.     verbose=yes ;;
  339.  
  340.   -version | --version | --versio | --versi | --vers)
  341.     echo "configure generated by autoconf version 2.12"
  342.     exit 0 ;;
  343.  
  344.   -with-* | --with-*)
  345.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  346.     # Reject names that are not valid shell variable names.
  347.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  348.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  349.     fi
  350.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  351.     case "$ac_option" in
  352.       *=*) ;;
  353.       *) ac_optarg=yes ;;
  354.     esac
  355.     eval "with_${ac_package}='$ac_optarg'" ;;
  356.  
  357.   -without-* | --without-*)
  358.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  359.     # Reject names that are not valid shell variable names.
  360.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  361.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  362.     fi
  363.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  364.     eval "with_${ac_package}=no" ;;
  365.  
  366.   --x)
  367.     # Obsolete; use --with-x.
  368.     with_x=yes ;;
  369.  
  370.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  371.   | --x-incl | --x-inc | --x-in | --x-i)
  372.     ac_prev=x_includes ;;
  373.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  374.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  375.     x_includes="$ac_optarg" ;;
  376.  
  377.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  378.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  379.     ac_prev=x_libraries ;;
  380.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  381.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  382.     x_libraries="$ac_optarg" ;;
  383.  
  384.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  385.     ;;
  386.  
  387.   *)
  388.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  389.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  390.     fi
  391.     if test "x$nonopt" != xNONE; then
  392.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  393.     fi
  394.     nonopt="$ac_option"
  395.     ;;
  396.  
  397.   esac
  398. done
  399.  
  400. if test -n "$ac_prev"; then
  401.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  402. fi
  403.  
  404. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  405.  
  406. # File descriptor usage:
  407. # 0 standard input
  408. # 1 file creation
  409. # 2 errors and warnings
  410. # 3 some systems may open it to /dev/tty
  411. # 4 used on the Kubota Titan
  412. # 6 checking for... messages and results
  413. # 5 compiler messages saved in config.log
  414. if test "$silent" = yes; then
  415.   exec 6>/dev/null
  416. else
  417.   exec 6>&1
  418. fi
  419. exec 5>./config.log
  420.  
  421. echo "\
  422. This file contains any messages produced by compilers while
  423. running configure, to aid debugging if configure makes a mistake.
  424. " 1>&5
  425.  
  426. # Strip out --no-create and --no-recursion so they do not pile up.
  427. # Also quote any args containing shell metacharacters.
  428. ac_configure_args=
  429. for ac_arg
  430. do
  431.   case "$ac_arg" in
  432.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  433.   | --no-cr | --no-c) ;;
  434.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  435.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  436.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  437.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  438.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  439.   esac
  440. done
  441.  
  442. # NLS nuisances.
  443. # Only set these to C if already set.  These must not be set unconditionally
  444. # because not all systems understand e.g. LANG=C (notably SCO).
  445. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  446. # Non-C LC_CTYPE values break the ctype check.
  447. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  448. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  449. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  450. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  451.  
  452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  453. rm -rf conftest* confdefs.h
  454. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  455. echo > confdefs.h
  456.  
  457. # A filename unique to this package, relative to the directory that
  458. # configure is in, which we can look for to find out if srcdir is correct.
  459. ac_unique_file=src/cfengine.c
  460.  
  461. # Find the source files, if location was not specified.
  462. if test -z "$srcdir"; then
  463.   ac_srcdir_defaulted=yes
  464.   # Try the directory containing this script, then its parent.
  465.   ac_prog=$0
  466.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  467.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  468.   srcdir=$ac_confdir
  469.   if test ! -r $srcdir/$ac_unique_file; then
  470.     srcdir=..
  471.   fi
  472. else
  473.   ac_srcdir_defaulted=no
  474. fi
  475. if test ! -r $srcdir/$ac_unique_file; then
  476.   if test "$ac_srcdir_defaulted" = yes; then
  477.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  478.   else
  479.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  480.   fi
  481. fi
  482. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  483.  
  484. # Prefer explicitly selected file to automatically selected ones.
  485. if test -z "$CONFIG_SITE"; then
  486.   if test "x$prefix" != xNONE; then
  487.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  488.   else
  489.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  490.   fi
  491. fi
  492. for ac_site_file in $CONFIG_SITE; do
  493.   if test -r "$ac_site_file"; then
  494.     echo "loading site script $ac_site_file"
  495.     . "$ac_site_file"
  496.   fi
  497. done
  498.  
  499. if test -r "$cache_file"; then
  500.   echo "loading cache $cache_file"
  501.   . $cache_file
  502. else
  503.   echo "creating cache $cache_file"
  504.   > $cache_file
  505. fi
  506.  
  507. ac_ext=c
  508. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  509. ac_cpp='$CPP $CPPFLAGS'
  510. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  511. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  512. cross_compiling=$ac_cv_prog_cc_cross
  513.  
  514. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  515.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  516.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  517.     ac_n= ac_c='
  518. ' ac_t='    '
  519.   else
  520.     ac_n=-n ac_c= ac_t=
  521.   fi
  522. else
  523.   ac_n= ac_c='\c' ac_t=
  524. fi
  525.  
  526.  
  527.  
  528.  
  529. echo "configure: warning: "------------------------------------------------"" 1>&2
  530. echo "configure: warning: " DFS users should use --enable-DCE"" 1>&2
  531. echo "configure: warning: ". . . . . . . . . . . . . . . . . . . . . . . . . "" 1>&2
  532. echo "configure: warning: "If you are compiling on older pre-POSIX or NT systems"" 1>&2
  533. echo "configure: warning: "you should get the librx compatibility lib from GNU"" 1>&2
  534. echo "configure: warning: "------------------------------------------------"" 1>&2
  535.  
  536. ac_aux_dir=
  537. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  538.   if test -f $ac_dir/install-sh; then
  539.     ac_aux_dir=$ac_dir
  540.     ac_install_sh="$ac_aux_dir/install-sh -c"
  541.     break
  542.   elif test -f $ac_dir/install.sh; then
  543.     ac_aux_dir=$ac_dir
  544.     ac_install_sh="$ac_aux_dir/install.sh -c"
  545.     break
  546.   fi
  547. done
  548. if test -z "$ac_aux_dir"; then
  549.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  550. fi
  551. ac_config_guess=$ac_aux_dir/config.guess
  552. ac_config_sub=$ac_aux_dir/config.sub
  553. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  554.  
  555.  
  556. # Do some error checking and defaulting for the host and target type.
  557. # The inputs are:
  558. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  559. #
  560. # The rules are:
  561. # 1. You are not allowed to specify --host, --target, and nonopt at the
  562. #    same time.
  563. # 2. Host defaults to nonopt.
  564. # 3. If nonopt is not specified, then host defaults to the current host,
  565. #    as determined by config.guess.
  566. # 4. Target and build default to nonopt.
  567. # 5. If nonopt is not specified, then target and build default to host.
  568.  
  569. # The aliases save the names the user supplied, while $host etc.
  570. # will get canonicalized.
  571. case $host---$target---$nonopt in
  572. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  573. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  574. esac
  575.  
  576.  
  577. # Make sure we can run config.sub.
  578. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  579. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  580. fi
  581.  
  582. echo $ac_n "checking host system type""... $ac_c" 1>&6
  583. echo "configure:584: checking host system type" >&5
  584.  
  585. host_alias=$host
  586. case "$host_alias" in
  587. NONE)
  588.   case $nonopt in
  589.   NONE)
  590.     if host_alias=`$ac_config_guess`; then :
  591.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  592.     fi ;;
  593.   *) host_alias=$nonopt ;;
  594.   esac ;;
  595. esac
  596.  
  597. host=`$ac_config_sub $host_alias`
  598. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  599. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  600. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  601. echo "$ac_t""$host" 1>&6
  602.  
  603. echo $ac_n "checking target system type""... $ac_c" 1>&6
  604. echo "configure:605: checking target system type" >&5
  605.  
  606. target_alias=$target
  607. case "$target_alias" in
  608. NONE)
  609.   case $nonopt in
  610.   NONE) target_alias=$host_alias ;;
  611.   *) target_alias=$nonopt ;;
  612.   esac ;;
  613. esac
  614.  
  615. target=`$ac_config_sub $target_alias`
  616. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  617. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  618. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  619. echo "$ac_t""$target" 1>&6
  620.  
  621. echo $ac_n "checking build system type""... $ac_c" 1>&6
  622. echo "configure:623: checking build system type" >&5
  623.  
  624. build_alias=$build
  625. case "$build_alias" in
  626. NONE)
  627.   case $nonopt in
  628.   NONE) build_alias=$host_alias ;;
  629.   *) build_alias=$nonopt ;;
  630.   esac ;;
  631. esac
  632.  
  633. build=`$ac_config_sub $build_alias`
  634. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  635. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  636. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  637. echo "$ac_t""$build" 1>&6
  638.  
  639. test "$host_alias" != "$target_alias" &&
  640.   test "$program_prefix$program_suffix$program_transform_name" = \
  641.     NONENONEs,x,x, &&
  642.   program_prefix=${target_alias}-
  643.  
  644.  
  645. cfversion=`cat $srcdir/version`
  646.  
  647.  
  648. #
  649. # Add to the default list of places in LDFLAGS to compensate for
  650. # ... the configure default value of LIBS on some systems
  651. #
  652. for x in /usr/local/ssl/lib /usr/local/BerkeleyDB/lib /usr/local/gnu/lib \
  653.     /usr/local/gnulib /usr/local/lib 
  654. do
  655.   if test -d "$x"; then
  656.     y=`expr " $LDFLAGS " : ".* -L$x "`
  657.     if test $y -eq 0; then
  658.       LDFLAGS="$LDFLAGS -L$x"
  659.     fi
  660.   fi
  661. done
  662.  
  663. #
  664. # Add to the default list of places in CPPFLAGS to match LDFLAGS above
  665. for x in /usr/local/ssl/include /usr/local/BerkeleyDB/include \
  666.     /usr/local/include /usr/local/gnu/include
  667. do 
  668.   if test -d "$x"; then
  669.     y=`expr " $CPPFLAGS " : ".* -I$x "`
  670.     if test $y -eq 0; then
  671.       CPPFLAGS="$CPPFLAGS -I$x"
  672.     fi
  673.   fi
  674. done
  675.  
  676.  
  677. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  678. echo "configure:680: checking whether ${MAKE-make} sets \${MAKE}" >&5
  679. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  680. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  681.   echo $ac_n "(cached) $ac_c" 1>&6
  682. else
  683.   cat > conftestmake <<\EOF
  684. all:
  685.     @echo 'ac_maketemp="${MAKE}"'
  686. EOF
  687. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  688. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  689. if test -n "$ac_maketemp"; then
  690.   eval ac_cv_prog_make_${ac_make}_set=yes
  691. else
  692.   eval ac_cv_prog_make_${ac_make}_set=no
  693. fi
  694. rm -f conftestmake
  695. fi
  696. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  697.   echo "$ac_t""yes" 1>&6
  698.   SET_MAKE=
  699. else
  700.   echo "$ac_t""no" 1>&6
  701.   SET_MAKE="MAKE=${MAKE-make}"
  702. fi
  703.  
  704.  
  705. # Extract the first word of "gcc", so it can be a program name with args.
  706. set dummy gcc; ac_word=$2
  707. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  708. echo "configure:710: checking for $ac_word" >&5
  709. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  710.   echo $ac_n "(cached) $ac_c" 1>&6
  711. else
  712.   if test -n "$CC"; then
  713.   ac_cv_prog_CC="$CC" # Let the user override the test.
  714. else
  715.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  716.   for ac_dir in $PATH; do
  717.     test -z "$ac_dir" && ac_dir=.
  718.     if test -f $ac_dir/$ac_word; then
  719.       ac_cv_prog_CC="gcc"
  720.       break
  721.     fi
  722.   done
  723.   IFS="$ac_save_ifs"
  724. fi
  725. fi
  726. CC="$ac_cv_prog_CC"
  727. if test -n "$CC"; then
  728.   echo "$ac_t""$CC" 1>&6
  729. else
  730.   echo "$ac_t""no" 1>&6
  731. fi
  732.  
  733. if test -z "$CC"; then
  734.   # Extract the first word of "cc", so it can be a program name with args.
  735. set dummy cc; ac_word=$2
  736. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  737. echo "configure:739: checking for $ac_word" >&5
  738. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  739.   echo $ac_n "(cached) $ac_c" 1>&6
  740. else
  741.   if test -n "$CC"; then
  742.   ac_cv_prog_CC="$CC" # Let the user override the test.
  743. else
  744.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  745.   ac_prog_rejected=no
  746.   for ac_dir in $PATH; do
  747.     test -z "$ac_dir" && ac_dir=.
  748.     if test -f $ac_dir/$ac_word; then
  749.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  750.         ac_prog_rejected=yes
  751.     continue
  752.       fi
  753.       ac_cv_prog_CC="cc"
  754.       break
  755.     fi
  756.   done
  757.   IFS="$ac_save_ifs"
  758. if test $ac_prog_rejected = yes; then
  759.   # We found a bogon in the path, so make sure we never use it.
  760.   set dummy $ac_cv_prog_CC
  761.   shift
  762.   if test $# -gt 0; then
  763.     # We chose a different compiler from the bogus one.
  764.     # However, it has the same basename, so the bogon will be chosen
  765.     # first if we set CC to just the basename; use the full file name.
  766.     shift
  767.     set dummy "$ac_dir/$ac_word" "$@"
  768.     shift
  769.     ac_cv_prog_CC="$@"
  770.   fi
  771. fi
  772. fi
  773. fi
  774. CC="$ac_cv_prog_CC"
  775. if test -n "$CC"; then
  776.   echo "$ac_t""$CC" 1>&6
  777. else
  778.   echo "$ac_t""no" 1>&6
  779. fi
  780.  
  781.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  782. fi
  783.  
  784. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  785. echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  786.  
  787. ac_ext=c
  788. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  789. ac_cpp='$CPP $CPPFLAGS'
  790. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  791. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  792. cross_compiling=$ac_cv_prog_cc_cross
  793.  
  794. cat > conftest.$ac_ext <<EOF
  795. #line 797 "configure"
  796. #include "confdefs.h"
  797. main(){return(0);}
  798. EOF
  799. if { (eval echo configure:801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  800.   ac_cv_prog_cc_works=yes
  801.   # If we can't run a trivial program, we are probably using a cross compiler.
  802.   if (./conftest; exit) 2>/dev/null; then
  803.     ac_cv_prog_cc_cross=no
  804.   else
  805.     ac_cv_prog_cc_cross=yes
  806.   fi
  807. else
  808.   echo "configure: failed program was:" >&5
  809.   cat conftest.$ac_ext >&5
  810.   ac_cv_prog_cc_works=no
  811. fi
  812. rm -fr conftest*
  813.  
  814. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  815. if test $ac_cv_prog_cc_works = no; then
  816.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  817. fi
  818. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  819. echo "configure:821: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  820. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  821. cross_compiling=$ac_cv_prog_cc_cross
  822.  
  823. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  824. echo "configure:826: checking whether we are using GNU C" >&5
  825. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  826.   echo $ac_n "(cached) $ac_c" 1>&6
  827. else
  828.   cat > conftest.c <<EOF
  829. #ifdef __GNUC__
  830.   yes;
  831. #endif
  832. EOF
  833. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  834.   ac_cv_prog_gcc=yes
  835. else
  836.   ac_cv_prog_gcc=no
  837. fi
  838. fi
  839.  
  840. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  841.  
  842. if test $ac_cv_prog_gcc = yes; then
  843.   GCC=yes
  844.   ac_test_CFLAGS="${CFLAGS+set}"
  845.   ac_save_CFLAGS="$CFLAGS"
  846.   CFLAGS=
  847.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  848. echo "configure:850: checking whether ${CC-cc} accepts -g" >&5
  849. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  850.   echo $ac_n "(cached) $ac_c" 1>&6
  851. else
  852.   echo 'void f(){}' > conftest.c
  853. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  854.   ac_cv_prog_cc_g=yes
  855. else
  856.   ac_cv_prog_cc_g=no
  857. fi
  858. rm -f conftest*
  859.  
  860. fi
  861.  
  862. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  863.   if test "$ac_test_CFLAGS" = set; then
  864.     CFLAGS="$ac_save_CFLAGS"
  865.   elif test $ac_cv_prog_cc_g = yes; then
  866.     CFLAGS="-g -O2"
  867.   else
  868.     CFLAGS="-O2"
  869.   fi
  870. else
  871.   GCC=
  872.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  873. fi
  874.  
  875. ADD_CC_WALL=false    
  876. # Extract the first word of "flex", so it can be a program name with args.
  877. set dummy flex; ac_word=$2
  878. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  879. echo "configure:881: checking for $ac_word" >&5
  880. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  881.   echo $ac_n "(cached) $ac_c" 1>&6
  882. else
  883.   if test -n "$LEX"; then
  884.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  885. else
  886.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  887.   for ac_dir in $PATH; do
  888.     test -z "$ac_dir" && ac_dir=.
  889.     if test -f $ac_dir/$ac_word; then
  890.       ac_cv_prog_LEX="flex"
  891.       break
  892.     fi
  893.   done
  894.   IFS="$ac_save_ifs"
  895.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  896. fi
  897. fi
  898. LEX="$ac_cv_prog_LEX"
  899. if test -n "$LEX"; then
  900.   echo "$ac_t""$LEX" 1>&6
  901. else
  902.   echo "$ac_t""no" 1>&6
  903. fi
  904.  
  905. if test -z "$LEXLIB"
  906. then
  907.   case "$LEX" in
  908.   flex*) ac_lib=fl ;;
  909.   *) ac_lib=l ;;
  910.   esac
  911.   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  912. echo "configure:914: checking for yywrap in -l$ac_lib" >&5
  913. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  914. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  915.   echo $ac_n "(cached) $ac_c" 1>&6
  916. else
  917.   ac_save_LIBS="$LIBS"
  918. LIBS="-l$ac_lib  $LIBS"
  919. cat > conftest.$ac_ext <<EOF
  920. #line 922 "configure"
  921. #include "confdefs.h"
  922. /* Override any gcc2 internal prototype to avoid an error.  */
  923. /* We use char because int might match the return type of a gcc2
  924.     builtin and then its argument prototype would still apply.  */
  925. char yywrap();
  926.  
  927. int main() {
  928. yywrap()
  929. ; return 0; }
  930. EOF
  931. if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  932.   rm -rf conftest*
  933.   eval "ac_cv_lib_$ac_lib_var=yes"
  934. else
  935.   echo "configure: failed program was:" >&5
  936.   cat conftest.$ac_ext >&5
  937.   rm -rf conftest*
  938.   eval "ac_cv_lib_$ac_lib_var=no"
  939. fi
  940. rm -f conftest*
  941. LIBS="$ac_save_LIBS"
  942.  
  943. fi
  944. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  945.   echo "$ac_t""yes" 1>&6
  946.   LEXLIB="-l$ac_lib"
  947. else
  948.   echo "$ac_t""no" 1>&6
  949. fi
  950.  
  951. fi
  952.  
  953. for ac_prog in 'bison -y' byacc
  954. do
  955. # Extract the first word of "$ac_prog", so it can be a program name with args.
  956. set dummy $ac_prog; ac_word=$2
  957. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  958. echo "configure:960: checking for $ac_word" >&5
  959. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  960.   echo $ac_n "(cached) $ac_c" 1>&6
  961. else
  962.   if test -n "$YACC"; then
  963.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  964. else
  965.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  966.   for ac_dir in $PATH; do
  967.     test -z "$ac_dir" && ac_dir=.
  968.     if test -f $ac_dir/$ac_word; then
  969.       ac_cv_prog_YACC="$ac_prog"
  970.       break
  971.     fi
  972.   done
  973.   IFS="$ac_save_ifs"
  974. fi
  975. fi
  976. YACC="$ac_cv_prog_YACC"
  977. if test -n "$YACC"; then
  978.   echo "$ac_t""$YACC" 1>&6
  979. else
  980.   echo "$ac_t""no" 1>&6
  981. fi
  982.  
  983. test -n "$YACC" && break
  984. done
  985. test -n "$YACC" || YACC="yacc"
  986.  
  987.  
  988. # Extract the first word of "ranlib", so it can be a program name with args.
  989. set dummy ranlib; ac_word=$2
  990. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  991. echo "configure:993: checking for $ac_word" >&5
  992. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  993.   echo $ac_n "(cached) $ac_c" 1>&6
  994. else
  995.   if test -n "$RANLIB"; then
  996.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  997. else
  998.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  999.   for ac_dir in $PATH; do
  1000.     test -z "$ac_dir" && ac_dir=.
  1001.     if test -f $ac_dir/$ac_word; then
  1002.       ac_cv_prog_RANLIB="ranlib"
  1003.       break
  1004.     fi
  1005.   done
  1006.   IFS="$ac_save_ifs"
  1007.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1008. fi
  1009. fi
  1010. RANLIB="$ac_cv_prog_RANLIB"
  1011. if test -n "$RANLIB"; then
  1012.   echo "$ac_t""$RANLIB" 1>&6
  1013. else
  1014.   echo "$ac_t""no" 1>&6
  1015. fi
  1016.  
  1017. # Find a good install program.  We prefer a C program (faster),
  1018. # so one script is as good as another.  But avoid the broken or
  1019. # incompatible versions:
  1020. # SysV /etc/install, /usr/sbin/install
  1021. # SunOS /usr/etc/install
  1022. # IRIX /sbin/install
  1023. # AIX /bin/install
  1024. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1025. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1026. # ./install, which can be erroneously created by make from ./install.sh.
  1027. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1028. echo "configure:1030: checking for a BSD compatible install" >&5
  1029. if test -z "$INSTALL"; then
  1030. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1031.   echo $ac_n "(cached) $ac_c" 1>&6
  1032. else
  1033.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  1034.   for ac_dir in $PATH; do
  1035.     # Account for people who put trailing slashes in PATH elements.
  1036.     case "$ac_dir/" in
  1037.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1038.     *)
  1039.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1040.       for ac_prog in ginstall installbsd scoinst install; do
  1041.         if test -f $ac_dir/$ac_prog; then
  1042.       if test $ac_prog = install &&
  1043.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1044.         # AIX install.  It has an incompatible calling convention.
  1045.         # OSF/1 installbsd also uses dspmsg, but is usable.
  1046.         :
  1047.       else
  1048.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1049.         break 2
  1050.       fi
  1051.     fi
  1052.       done
  1053.       ;;
  1054.     esac
  1055.   done
  1056.   IFS="$ac_save_IFS"
  1057.  
  1058. fi
  1059.   if test "${ac_cv_path_install+set}" = set; then
  1060.     INSTALL="$ac_cv_path_install"
  1061.   else
  1062.     # As a last resort, use the slow shell script.  We don't cache a
  1063.     # path for INSTALL within a source directory, because that will
  1064.     # break other packages using the cache if that directory is
  1065.     # removed, or if the path is relative.
  1066.     INSTALL="$ac_install_sh"
  1067.   fi
  1068. fi
  1069. echo "$ac_t""$INSTALL" 1>&6
  1070.  
  1071. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1072. # It thinks the first close brace ends the variable substitution.
  1073. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1074.  
  1075. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1076.  
  1077.  
  1078. # Extract the first word of "perl", so it can be a program name with args.
  1079. set dummy perl; ac_word=$2
  1080. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1081. echo "configure:1083: checking for $ac_word" >&5
  1082. if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  1083.   echo $ac_n "(cached) $ac_c" 1>&6
  1084. else
  1085.   case "$PERL" in
  1086.   /*)
  1087.   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  1088.   ;;
  1089.   *)
  1090.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1091.   for ac_dir in \
  1092.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1093.     test -z "$ac_dir" && ac_dir=.
  1094.     if test -f $ac_dir/$ac_word; then
  1095.       ac_cv_path_PERL="$ac_dir/$ac_word"
  1096.       break
  1097.     fi
  1098.   done
  1099.   IFS="$ac_save_ifs"
  1100.   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/bin/false"
  1101.   ;;
  1102. esac
  1103. fi
  1104. PERL="$ac_cv_path_PERL"
  1105. if test -n "$PERL"; then
  1106.   echo "$ac_t""$PERL" 1>&6
  1107. else
  1108.   echo "$ac_t""no" 1>&6
  1109. fi
  1110.  
  1111. # Extract the first word of "tex", so it can be a program name with args.
  1112. set dummy tex; ac_word=$2
  1113. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1114. echo "configure:1116: checking for $ac_word" >&5
  1115. if eval "test \"`echo '$''{'ac_cv_path_TEX'+set}'`\" = set"; then
  1116.   echo $ac_n "(cached) $ac_c" 1>&6
  1117. else
  1118.   case "$TEX" in
  1119.   /*)
  1120.   ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
  1121.   ;;
  1122.   *)
  1123.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1124.   for ac_dir in \
  1125.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1126.     test -z "$ac_dir" && ac_dir=.
  1127.     if test -f $ac_dir/$ac_word; then
  1128.       ac_cv_path_TEX="$ac_dir/$ac_word"
  1129.       break
  1130.     fi
  1131.   done
  1132.   IFS="$ac_save_ifs"
  1133.   test -z "$ac_cv_path_TEX" && ac_cv_path_TEX="/bin/false"
  1134.   ;;
  1135. esac
  1136. fi
  1137. TEX="$ac_cv_path_TEX"
  1138. if test -n "$TEX"; then
  1139.   echo "$ac_t""$TEX" 1>&6
  1140. else
  1141.   echo "$ac_t""no" 1>&6
  1142. fi
  1143.  
  1144. # Extract the first word of "latex", so it can be a program name with args.
  1145. set dummy latex; ac_word=$2
  1146. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1147. echo "configure:1149: checking for $ac_word" >&5
  1148. if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
  1149.   echo $ac_n "(cached) $ac_c" 1>&6
  1150. else
  1151.   case "$LATEX" in
  1152.   /*)
  1153.   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
  1154.   ;;
  1155.   *)
  1156.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1157.   for ac_dir in \
  1158.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1159.     test -z "$ac_dir" && ac_dir=.
  1160.     if test -f $ac_dir/$ac_word; then
  1161.       ac_cv_path_LATEX="$ac_dir/$ac_word"
  1162.       break
  1163.     fi
  1164.   done
  1165.   IFS="$ac_save_ifs"
  1166.   test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX="/bin/false"
  1167.   ;;
  1168. esac
  1169. fi
  1170. LATEX="$ac_cv_path_LATEX"
  1171. if test -n "$LATEX"; then
  1172.   echo "$ac_t""$LATEX" 1>&6
  1173. else
  1174.   echo "$ac_t""no" 1>&6
  1175. fi
  1176.  
  1177. # Extract the first word of "texindex", so it can be a program name with args.
  1178. set dummy texindex; ac_word=$2
  1179. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1180. echo "configure:1182: checking for $ac_word" >&5
  1181. if eval "test \"`echo '$''{'ac_cv_path_TEXINDEX'+set}'`\" = set"; then
  1182.   echo $ac_n "(cached) $ac_c" 1>&6
  1183. else
  1184.   case "$TEXINDEX" in
  1185.   /*)
  1186.   ac_cv_path_TEXINDEX="$TEXINDEX" # Let the user override the test with a path.
  1187.   ;;
  1188.   *)
  1189.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1190.   for ac_dir in \
  1191.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1192.     test -z "$ac_dir" && ac_dir=.
  1193.     if test -f $ac_dir/$ac_word; then
  1194.       ac_cv_path_TEXINDEX="$ac_dir/$ac_word"
  1195.       break
  1196.     fi
  1197.   done
  1198.   IFS="$ac_save_ifs"
  1199.   test -z "$ac_cv_path_TEXINDEX" && ac_cv_path_TEXINDEX="/bin/false"
  1200.   ;;
  1201. esac
  1202. fi
  1203. TEXINDEX="$ac_cv_path_TEXINDEX"
  1204. if test -n "$TEXINDEX"; then
  1205.   echo "$ac_t""$TEXINDEX" 1>&6
  1206. else
  1207.   echo "$ac_t""no" 1>&6
  1208. fi
  1209.  
  1210. # Extract the first word of "dvips", so it can be a program name with args.
  1211. set dummy dvips; ac_word=$2
  1212. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1213. echo "configure:1215: checking for $ac_word" >&5
  1214. if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
  1215.   echo $ac_n "(cached) $ac_c" 1>&6
  1216. else
  1217.   case "$DVIPS" in
  1218.   /*)
  1219.   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
  1220.   ;;
  1221.   *)
  1222.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1223.   for ac_dir in \
  1224.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1225.     test -z "$ac_dir" && ac_dir=.
  1226.     if test -f $ac_dir/$ac_word; then
  1227.       ac_cv_path_DVIPS="$ac_dir/$ac_word"
  1228.       break
  1229.     fi
  1230.   done
  1231.   IFS="$ac_save_ifs"
  1232.   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="/bin/false"
  1233.   ;;
  1234. esac
  1235. fi
  1236. DVIPS="$ac_cv_path_DVIPS"
  1237. if test -n "$DVIPS"; then
  1238.   echo "$ac_t""$DVIPS" 1>&6
  1239. else
  1240.   echo "$ac_t""no" 1>&6
  1241. fi
  1242.  
  1243. # Extract the first word of "texi2html", so it can be a program name with args.
  1244. set dummy texi2html; ac_word=$2
  1245. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1246. echo "configure:1248: checking for $ac_word" >&5
  1247. if eval "test \"`echo '$''{'ac_cv_path_TEXI2HTML'+set}'`\" = set"; then
  1248.   echo $ac_n "(cached) $ac_c" 1>&6
  1249. else
  1250.   case "$TEXI2HTML" in
  1251.   /*)
  1252.   ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path.
  1253.   ;;
  1254.   *)
  1255.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1256.   for ac_dir in \
  1257.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1258.     test -z "$ac_dir" && ac_dir=.
  1259.     if test -f $ac_dir/$ac_word; then
  1260.       ac_cv_path_TEXI2HTML="$ac_dir/$ac_word"
  1261.       break
  1262.     fi
  1263.   done
  1264.   IFS="$ac_save_ifs"
  1265.   test -z "$ac_cv_path_TEXI2HTML" && ac_cv_path_TEXI2HTML="/bin/false"
  1266.   ;;
  1267. esac
  1268. fi
  1269. TEXI2HTML="$ac_cv_path_TEXI2HTML"
  1270. if test -n "$TEXI2HTML"; then
  1271.   echo "$ac_t""$TEXI2HTML" 1>&6
  1272. else
  1273.   echo "$ac_t""no" 1>&6
  1274. fi
  1275.  
  1276. # Extract the first word of "makeinfo", so it can be a program name with args.
  1277. set dummy makeinfo; ac_word=$2
  1278. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1279. echo "configure:1281: checking for $ac_word" >&5
  1280. if eval "test \"`echo '$''{'ac_cv_path_MAKEINFO'+set}'`\" = set"; then
  1281.   echo $ac_n "(cached) $ac_c" 1>&6
  1282. else
  1283.   case "$MAKEINFO" in
  1284.   /*)
  1285.   ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
  1286.   ;;
  1287.   *)
  1288.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1289.   for ac_dir in \
  1290.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1291.     test -z "$ac_dir" && ac_dir=.
  1292.     if test -f $ac_dir/$ac_word; then
  1293.       ac_cv_path_MAKEINFO="$ac_dir/$ac_word"
  1294.       break
  1295.     fi
  1296.   done
  1297.   IFS="$ac_save_ifs"
  1298.   test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="/bin/false"
  1299.   ;;
  1300. esac
  1301. fi
  1302. MAKEINFO="$ac_cv_path_MAKEINFO"
  1303. if test -n "$MAKEINFO"; then
  1304.   echo "$ac_t""$MAKEINFO" 1>&6
  1305. else
  1306.   echo "$ac_t""no" 1>&6
  1307. fi
  1308.  
  1309.  
  1310.  
  1311. # Extract the first word of "tex", so it can be a program name with args.
  1312. set dummy tex; ac_word=$2
  1313. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1314. echo "configure:1316: checking for $ac_word" >&5
  1315. if eval "test \"`echo '$''{'ac_cv_prog_DFILE1'+set}'`\" = set"; then
  1316.   echo $ac_n "(cached) $ac_c" 1>&6
  1317. else
  1318.   if test -n "$DFILE1"; then
  1319.   ac_cv_prog_DFILE1="$DFILE1" # Let the user override the test.
  1320. else
  1321.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1322.   for ac_dir in \
  1323.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1324.     test -z "$ac_dir" && ac_dir=.
  1325.     if test -f $ac_dir/$ac_word; then
  1326.       ac_cv_prog_DFILE1=""cfengine-Tutorial.dvi""
  1327.       break
  1328.     fi
  1329.   done
  1330.   IFS="$ac_save_ifs"
  1331.   test -z "$ac_cv_prog_DFILE1" && ac_cv_prog_DFILE1=""""
  1332. fi
  1333. fi
  1334. DFILE1="$ac_cv_prog_DFILE1"
  1335. if test -n "$DFILE1"; then
  1336.   echo "$ac_t""$DFILE1" 1>&6
  1337. else
  1338.   echo "$ac_t""no" 1>&6
  1339. fi
  1340.  
  1341. # Extract the first word of "tex", so it can be a program name with args.
  1342. set dummy tex; ac_word=$2
  1343. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1344. echo "configure:1346: checking for $ac_word" >&5
  1345. if eval "test \"`echo '$''{'ac_cv_prog_DFILE2'+set}'`\" = set"; then
  1346.   echo $ac_n "(cached) $ac_c" 1>&6
  1347. else
  1348.   if test -n "$DFILE2"; then
  1349.   ac_cv_prog_DFILE2="$DFILE2" # Let the user override the test.
  1350. else
  1351.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1352.   for ac_dir in \
  1353.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1354.     test -z "$ac_dir" && ac_dir=.
  1355.     if test -f $ac_dir/$ac_word; then
  1356.       ac_cv_prog_DFILE2=""cfengine-Reference.dvi""
  1357.       break
  1358.     fi
  1359.   done
  1360.   IFS="$ac_save_ifs"
  1361.   test -z "$ac_cv_prog_DFILE2" && ac_cv_prog_DFILE2=""""
  1362. fi
  1363. fi
  1364. DFILE2="$ac_cv_prog_DFILE2"
  1365. if test -n "$DFILE2"; then
  1366.   echo "$ac_t""$DFILE2" 1>&6
  1367. else
  1368.   echo "$ac_t""no" 1>&6
  1369. fi
  1370.  
  1371. # Extract the first word of "dvips", so it can be a program name with args.
  1372. set dummy dvips; ac_word=$2
  1373. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1374. echo "configure:1376: checking for $ac_word" >&5
  1375. if eval "test \"`echo '$''{'ac_cv_prog_PFILE1'+set}'`\" = set"; then
  1376.   echo $ac_n "(cached) $ac_c" 1>&6
  1377. else
  1378.   if test -n "$PFILE1"; then
  1379.   ac_cv_prog_PFILE1="$PFILE1" # Let the user override the test.
  1380. else
  1381.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1382.   for ac_dir in \
  1383.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1384.     test -z "$ac_dir" && ac_dir=.
  1385.     if test -f $ac_dir/$ac_word; then
  1386.       ac_cv_prog_PFILE1=""cfengine-Tutorial.ps""
  1387.       break
  1388.     fi
  1389.   done
  1390.   IFS="$ac_save_ifs"
  1391.   test -z "$ac_cv_prog_PFILE1" && ac_cv_prog_PFILE1=""""
  1392. fi
  1393. fi
  1394. PFILE1="$ac_cv_prog_PFILE1"
  1395. if test -n "$PFILE1"; then
  1396.   echo "$ac_t""$PFILE1" 1>&6
  1397. else
  1398.   echo "$ac_t""no" 1>&6
  1399. fi
  1400.  
  1401. # Extract the first word of "dvips", so it can be a program name with args.
  1402. set dummy dvips; ac_word=$2
  1403. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1404. echo "configure:1406: checking for $ac_word" >&5
  1405. if eval "test \"`echo '$''{'ac_cv_prog_PFILE2'+set}'`\" = set"; then
  1406.   echo $ac_n "(cached) $ac_c" 1>&6
  1407. else
  1408.   if test -n "$PFILE2"; then
  1409.   ac_cv_prog_PFILE2="$PFILE2" # Let the user override the test.
  1410. else
  1411.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1412.   for ac_dir in \
  1413.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1414.     test -z "$ac_dir" && ac_dir=.
  1415.     if test -f $ac_dir/$ac_word; then
  1416.       ac_cv_prog_PFILE2=""cfengine-Reference.ps""
  1417.       break
  1418.     fi
  1419.   done
  1420.   IFS="$ac_save_ifs"
  1421.   test -z "$ac_cv_prog_PFILE2" && ac_cv_prog_PFILE2=""""
  1422. fi
  1423. fi
  1424. PFILE2="$ac_cv_prog_PFILE2"
  1425. if test -n "$PFILE2"; then
  1426.   echo "$ac_t""$PFILE2" 1>&6
  1427. else
  1428.   echo "$ac_t""no" 1>&6
  1429. fi
  1430.  
  1431. # Extract the first word of "makeinfo", so it can be a program name with args.
  1432. set dummy makeinfo; ac_word=$2
  1433. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1434. echo "configure:1436: checking for $ac_word" >&5
  1435. if eval "test \"`echo '$''{'ac_cv_prog_HFILE1'+set}'`\" = set"; then
  1436.   echo $ac_n "(cached) $ac_c" 1>&6
  1437. else
  1438.   if test -n "$HFILE1"; then
  1439.   ac_cv_prog_HFILE1="$HFILE1" # Let the user override the test.
  1440. else
  1441.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1442.   for ac_dir in \
  1443.           $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1444.     test -z "$ac_dir" && ac_dir=.
  1445.     if test -f $ac_dir/$ac_word; then
  1446.       ac_cv_prog_HFILE1=""cfengine-Tutorial.html""
  1447.       break
  1448.     fi
  1449.   done
  1450.   IFS="$ac_save_ifs"
  1451.   test -z "$ac_cv_prog_HFILE1" && ac_cv_prog_HFILE1=""""
  1452. fi
  1453. fi
  1454. HFILE1="$ac_cv_prog_HFILE1"
  1455. if test -n "$HFILE1"; then
  1456.   echo "$ac_t""$HFILE1" 1>&6
  1457. else
  1458.   echo "$ac_t""no" 1>&6
  1459. fi
  1460.  
  1461. # Extract the first word of "makeinfo", so it can be a program name with args.
  1462. set dummy makeinfo; ac_word=$2
  1463. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1464. echo "configure:1466: checking for $ac_word" >&5
  1465. if eval "test \"`echo '$''{'ac_cv_prog_HFILE2'+set}'`\" = set"; then
  1466.   echo $ac_n "(cached) $ac_c" 1>&6
  1467. else
  1468.   if test -n "$HFILE2"; then
  1469.   ac_cv_prog_HFILE2="$HFILE2" # Let the user override the test.
  1470. else
  1471.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1472.   for ac_dir in \
  1473.           $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1474.     test -z "$ac_dir" && ac_dir=.
  1475.     if test -f $ac_dir/$ac_word; then
  1476.       ac_cv_prog_HFILE2=""cfengine-Reference.html""
  1477.       break
  1478.     fi
  1479.   done
  1480.   IFS="$ac_save_ifs"
  1481.   test -z "$ac_cv_prog_HFILE2" && ac_cv_prog_HFILE2=""""
  1482. fi
  1483. fi
  1484. HFILE2="$ac_cv_prog_HFILE2"
  1485. if test -n "$HFILE2"; then
  1486.   echo "$ac_t""$HFILE2" 1>&6
  1487. else
  1488.   echo "$ac_t""no" 1>&6
  1489. fi
  1490.  
  1491. # Extract the first word of "makeinfo", so it can be a program name with args.
  1492. set dummy makeinfo; ac_word=$2
  1493. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1494. echo "configure:1496: checking for $ac_word" >&5
  1495. if eval "test \"`echo '$''{'ac_cv_prog_IFILE1'+set}'`\" = set"; then
  1496.   echo $ac_n "(cached) $ac_c" 1>&6
  1497. else
  1498.   if test -n "$IFILE1"; then
  1499.   ac_cv_prog_IFILE1="$IFILE1" # Let the user override the test.
  1500. else
  1501.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1502.   for ac_dir in \
  1503.           $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1504.     test -z "$ac_dir" && ac_dir=.
  1505.     if test -f $ac_dir/$ac_word; then
  1506.       ac_cv_prog_IFILE1=""cfengine-Tutorial.info""
  1507.       break
  1508.     fi
  1509.   done
  1510.   IFS="$ac_save_ifs"
  1511.   test -z "$ac_cv_prog_IFILE1" && ac_cv_prog_IFILE1=""""
  1512. fi
  1513. fi
  1514. IFILE1="$ac_cv_prog_IFILE1"
  1515. if test -n "$IFILE1"; then
  1516.   echo "$ac_t""$IFILE1" 1>&6
  1517. else
  1518.   echo "$ac_t""no" 1>&6
  1519. fi
  1520.  
  1521. # Extract the first word of "makeinfo", so it can be a program name with args.
  1522. set dummy makeinfo; ac_word=$2
  1523. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1524. echo "configure:1526: checking for $ac_word" >&5
  1525. if eval "test \"`echo '$''{'ac_cv_prog_IFILE2'+set}'`\" = set"; then
  1526.   echo $ac_n "(cached) $ac_c" 1>&6
  1527. else
  1528.   if test -n "$IFILE2"; then
  1529.   ac_cv_prog_IFILE2="$IFILE2" # Let the user override the test.
  1530. else
  1531.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1532.   for ac_dir in \
  1533.           $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1534.     test -z "$ac_dir" && ac_dir=.
  1535.     if test -f $ac_dir/$ac_word; then
  1536.       ac_cv_prog_IFILE2=""cfengine-Reference.info""
  1537.       break
  1538.     fi
  1539.   done
  1540.   IFS="$ac_save_ifs"
  1541.   test -z "$ac_cv_prog_IFILE2" && ac_cv_prog_IFILE2=""""
  1542. fi
  1543. fi
  1544. IFILE2="$ac_cv_prog_IFILE2"
  1545. if test -n "$IFILE2"; then
  1546.   echo "$ac_t""$IFILE2" 1>&6
  1547. else
  1548.   echo "$ac_t""no" 1>&6
  1549. fi
  1550.  
  1551. # Extract the first word of "latex", so it can be a program name with args.
  1552. set dummy latex; ac_word=$2
  1553. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1554. echo "configure:1556: checking for $ac_word" >&5
  1555. if eval "test \"`echo '$''{'ac_cv_prog_DFILE3'+set}'`\" = set"; then
  1556.   echo $ac_n "(cached) $ac_c" 1>&6
  1557. else
  1558.   if test -n "$DFILE3"; then
  1559.   ac_cv_prog_DFILE3="$DFILE3" # Let the user override the test.
  1560. else
  1561.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1562.   for ac_dir in \
  1563.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1564.     test -z "$ac_dir" && ac_dir=.
  1565.     if test -f $ac_dir/$ac_word; then
  1566.       ac_cv_prog_DFILE3=""paper1.dvi""
  1567.       break
  1568.     fi
  1569.   done
  1570.   IFS="$ac_save_ifs"
  1571.   test -z "$ac_cv_prog_DFILE3" && ac_cv_prog_DFILE3=""""
  1572. fi
  1573. fi
  1574. DFILE3="$ac_cv_prog_DFILE3"
  1575. if test -n "$DFILE3"; then
  1576.   echo "$ac_t""$DFILE3" 1>&6
  1577. else
  1578.   echo "$ac_t""no" 1>&6
  1579. fi
  1580.  
  1581. # Extract the first word of "dvips", so it can be a program name with args.
  1582. set dummy dvips; ac_word=$2
  1583. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1584. echo "configure:1586: checking for $ac_word" >&5
  1585. if eval "test \"`echo '$''{'ac_cv_prog_PFILE3'+set}'`\" = set"; then
  1586.   echo $ac_n "(cached) $ac_c" 1>&6
  1587. else
  1588.   if test -n "$PFILE3"; then
  1589.   ac_cv_prog_PFILE3="$PFILE3" # Let the user override the test.
  1590. else
  1591.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1592.   for ac_dir in \
  1593.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1594.     test -z "$ac_dir" && ac_dir=.
  1595.     if test -f $ac_dir/$ac_word; then
  1596.       ac_cv_prog_PFILE3=""paper1.ps""
  1597.       break
  1598.     fi
  1599.   done
  1600.   IFS="$ac_save_ifs"
  1601.   test -z "$ac_cv_prog_PFILE3" && ac_cv_prog_PFILE3=""""
  1602. fi
  1603. fi
  1604. PFILE3="$ac_cv_prog_PFILE3"
  1605. if test -n "$PFILE3"; then
  1606.   echo "$ac_t""$PFILE3" 1>&6
  1607. else
  1608.   echo "$ac_t""no" 1>&6
  1609. fi
  1610.  
  1611. # Extract the first word of "latex", so it can be a program name with args.
  1612. set dummy latex; ac_word=$2
  1613. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1614. echo "configure:1616: checking for $ac_word" >&5
  1615. if eval "test \"`echo '$''{'ac_cv_prog_DFILE4'+set}'`\" = set"; then
  1616.   echo $ac_n "(cached) $ac_c" 1>&6
  1617. else
  1618.   if test -n "$DFILE4"; then
  1619.   ac_cv_prog_DFILE4="$DFILE4" # Let the user override the test.
  1620. else
  1621.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1622.   for ac_dir in \
  1623.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1624.     test -z "$ac_dir" && ac_dir=.
  1625.     if test -f $ac_dir/$ac_word; then
  1626.       ac_cv_prog_DFILE4=""paper2.dvi""
  1627.       break
  1628.     fi
  1629.   done
  1630.   IFS="$ac_save_ifs"
  1631.   test -z "$ac_cv_prog_DFILE4" && ac_cv_prog_DFILE4=""""
  1632. fi
  1633. fi
  1634. DFILE4="$ac_cv_prog_DFILE4"
  1635. if test -n "$DFILE4"; then
  1636.   echo "$ac_t""$DFILE4" 1>&6
  1637. else
  1638.   echo "$ac_t""no" 1>&6
  1639. fi
  1640.  
  1641. # Extract the first word of "dvips", so it can be a program name with args.
  1642. set dummy dvips; ac_word=$2
  1643. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1644. echo "configure:1646: checking for $ac_word" >&5
  1645. if eval "test \"`echo '$''{'ac_cv_prog_PFILE4'+set}'`\" = set"; then
  1646.   echo $ac_n "(cached) $ac_c" 1>&6
  1647. else
  1648.   if test -n "$PFILE4"; then
  1649.   ac_cv_prog_PFILE4="$PFILE4" # Let the user override the test.
  1650. else
  1651.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1652.   for ac_dir in \
  1653.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1654.     test -z "$ac_dir" && ac_dir=.
  1655.     if test -f $ac_dir/$ac_word; then
  1656.       ac_cv_prog_PFILE4=""paper2.ps""
  1657.       break
  1658.     fi
  1659.   done
  1660.   IFS="$ac_save_ifs"
  1661.   test -z "$ac_cv_prog_PFILE4" && ac_cv_prog_PFILE4=""""
  1662. fi
  1663. fi
  1664. PFILE4="$ac_cv_prog_PFILE4"
  1665. if test -n "$PFILE4"; then
  1666.   echo "$ac_t""$PFILE4" 1>&6
  1667. else
  1668.   echo "$ac_t""no" 1>&6
  1669. fi
  1670.  
  1671. # Extract the first word of "latex", so it can be a program name with args.
  1672. set dummy latex; ac_word=$2
  1673. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1674. echo "configure:1676: checking for $ac_word" >&5
  1675. if eval "test \"`echo '$''{'ac_cv_prog_DFILE5'+set}'`\" = set"; then
  1676.   echo $ac_n "(cached) $ac_c" 1>&6
  1677. else
  1678.   if test -n "$DFILE5"; then
  1679.   ac_cv_prog_DFILE5="$DFILE5" # Let the user override the test.
  1680. else
  1681.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1682.   for ac_dir in \
  1683.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1684.     test -z "$ac_dir" && ac_dir=.
  1685.     if test -f $ac_dir/$ac_word; then
  1686.       ac_cv_prog_DFILE5=""locks.dvi""
  1687.       break
  1688.     fi
  1689.   done
  1690.   IFS="$ac_save_ifs"
  1691.   test -z "$ac_cv_prog_DFILE5" && ac_cv_prog_DFILE5=""""
  1692. fi
  1693. fi
  1694. DFILE5="$ac_cv_prog_DFILE5"
  1695. if test -n "$DFILE5"; then
  1696.   echo "$ac_t""$DFILE5" 1>&6
  1697. else
  1698.   echo "$ac_t""no" 1>&6
  1699. fi
  1700.  
  1701. # Extract the first word of "dvips", so it can be a program name with args.
  1702. set dummy dvips; ac_word=$2
  1703. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1704. echo "configure:1706: checking for $ac_word" >&5
  1705. if eval "test \"`echo '$''{'ac_cv_prog_PFILE5'+set}'`\" = set"; then
  1706.   echo $ac_n "(cached) $ac_c" 1>&6
  1707. else
  1708.   if test -n "$PFILE5"; then
  1709.   ac_cv_prog_PFILE5="$PFILE5" # Let the user override the test.
  1710. else
  1711.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1712.   for ac_dir in \
  1713.         $PATH:$prefix/bin:/usr/bin:/usr/local/bin$ac_dummy; do
  1714.     test -z "$ac_dir" && ac_dir=.
  1715.     if test -f $ac_dir/$ac_word; then
  1716.       ac_cv_prog_PFILE5=""locks.ps""
  1717.       break
  1718.     fi
  1719.   done
  1720.   IFS="$ac_save_ifs"
  1721.   test -z "$ac_cv_prog_PFILE5" && ac_cv_prog_PFILE5=""""
  1722. fi
  1723. fi
  1724. PFILE5="$ac_cv_prog_PFILE5"
  1725. if test -n "$PFILE5"; then
  1726.   echo "$ac_t""$PFILE5" 1>&6
  1727. else
  1728.   echo "$ac_t""no" 1>&6
  1729. fi
  1730.  
  1731.  
  1732. DDOCS="$DFILE1 $DFILE2 $DFILE3 $DFILE4 $DFILE5"
  1733.  
  1734. PDOCS="$PFILE1 $PFILE2 $PFILE3 $PFILE4 $PFILE5"
  1735.  
  1736. HDOCS="$HFILE1 $HFILE2"
  1737.  
  1738. IDOCS="$IFILE1 $IFILE2"
  1739.  
  1740. CFDOCS="$DDOCS $PDOCS $HDOCS $IDOCS"
  1741.  
  1742.  
  1743.  
  1744.  
  1745. echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
  1746. echo "configure:1748: checking for main in -lm" >&5
  1747. ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
  1748. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1749.   echo $ac_n "(cached) $ac_c" 1>&6
  1750. else
  1751.   ac_save_LIBS="$LIBS"
  1752. LIBS="-lm  $LIBS"
  1753. cat > conftest.$ac_ext <<EOF
  1754. #line 1756 "configure"
  1755. #include "confdefs.h"
  1756.  
  1757. int main() {
  1758. main()
  1759. ; return 0; }
  1760. EOF
  1761. if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1762.   rm -rf conftest*
  1763.   eval "ac_cv_lib_$ac_lib_var=yes"
  1764. else
  1765.   echo "configure: failed program was:" >&5
  1766.   cat conftest.$ac_ext >&5
  1767.   rm -rf conftest*
  1768.   eval "ac_cv_lib_$ac_lib_var=no"
  1769. fi
  1770. rm -f conftest*
  1771. LIBS="$ac_save_LIBS"
  1772.  
  1773. fi
  1774. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1775.   echo "$ac_t""yes" 1>&6
  1776.     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1777.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1778.   cat >> confdefs.h <<EOF
  1779. #define $ac_tr_lib 1
  1780. EOF
  1781.  
  1782.   LIBS="-lm $LIBS"
  1783.  
  1784. else
  1785.   echo "$ac_t""no" 1>&6
  1786. fi
  1787.  
  1788.  
  1789. echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
  1790. echo "configure:1792: checking for setsockopt" >&5
  1791. if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
  1792.   echo $ac_n "(cached) $ac_c" 1>&6
  1793. else
  1794.   cat > conftest.$ac_ext <<EOF
  1795. #line 1797 "configure"
  1796. #include "confdefs.h"
  1797. /* System header to define __stub macros and hopefully few prototypes,
  1798.     which can conflict with char setsockopt(); below.  */
  1799. #include <assert.h>
  1800. /* Override any gcc2 internal prototype to avoid an error.  */
  1801. /* We use char because int might match the return type of a gcc2
  1802.     builtin and then its argument prototype would still apply.  */
  1803. char setsockopt();
  1804.  
  1805. int main() {
  1806.  
  1807. /* The GNU C library defines this for functions which it implements
  1808.     to always fail with ENOSYS.  Some functions are actually named
  1809.     something starting with __ and the normal name is an alias.  */
  1810. #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
  1811. choke me
  1812. #else
  1813. setsockopt();
  1814. #endif
  1815.  
  1816. ; return 0; }
  1817. EOF
  1818. if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1819.   rm -rf conftest*
  1820.   eval "ac_cv_func_setsockopt=yes"
  1821. else
  1822.   echo "configure: failed program was:" >&5
  1823.   cat conftest.$ac_ext >&5
  1824.   rm -rf conftest*
  1825.   eval "ac_cv_func_setsockopt=no"
  1826. fi
  1827. rm -f conftest*
  1828. fi
  1829.  
  1830. if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
  1831.   echo "$ac_t""yes" 1>&6
  1832.   :
  1833. else
  1834.   echo "$ac_t""no" 1>&6
  1835. echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
  1836. echo "configure:1838: checking for setsockopt in -lsocket" >&5
  1837. ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
  1838. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1839.   echo $ac_n "(cached) $ac_c" 1>&6
  1840. else
  1841.   ac_save_LIBS="$LIBS"
  1842. LIBS="-lsocket  $LIBS"
  1843. cat > conftest.$ac_ext <<EOF
  1844. #line 1846 "configure"
  1845. #include "confdefs.h"
  1846. /* Override any gcc2 internal prototype to avoid an error.  */
  1847. /* We use char because int might match the return type of a gcc2
  1848.     builtin and then its argument prototype would still apply.  */
  1849. char setsockopt();
  1850.  
  1851. int main() {
  1852. setsockopt()
  1853. ; return 0; }
  1854. EOF
  1855. if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1856.   rm -rf conftest*
  1857.   eval "ac_cv_lib_$ac_lib_var=yes"
  1858. else
  1859.   echo "configure: failed program was:" >&5
  1860.   cat conftest.$ac_ext >&5
  1861.   rm -rf conftest*
  1862.   eval "ac_cv_lib_$ac_lib_var=no"
  1863. fi
  1864. rm -f conftest*
  1865. LIBS="$ac_save_LIBS"
  1866.  
  1867. fi
  1868. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1869.   echo "$ac_t""yes" 1>&6
  1870.     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
  1871.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1872.   cat >> confdefs.h <<EOF
  1873. #define $ac_tr_lib 1
  1874. EOF
  1875.  
  1876.   LIBS="-lsocket $LIBS"
  1877.  
  1878. else
  1879.   echo "$ac_t""no" 1>&6
  1880. fi
  1881.  
  1882. fi
  1883.  
  1884. echo $ac_n "checking for gethostent""... $ac_c" 1>&6
  1885. echo "configure:1887: checking for gethostent" >&5
  1886. if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
  1887.   echo $ac_n "(cached) $ac_c" 1>&6
  1888. else
  1889.   cat > conftest.$ac_ext <<EOF
  1890. #line 1892 "configure"
  1891. #include "confdefs.h"
  1892. /* System header to define __stub macros and hopefully few prototypes,
  1893.     which can conflict with char gethostent(); below.  */
  1894. #include <assert.h>
  1895. /* Override any gcc2 internal prototype to avoid an error.  */
  1896. /* We use char because int might match the return type of a gcc2
  1897.     builtin and then its argument prototype would still apply.  */
  1898. char gethostent();
  1899.  
  1900. int main() {
  1901.  
  1902. /* The GNU C library defines this for functions which it implements
  1903.     to always fail with ENOSYS.  Some functions are actually named
  1904.     something starting with __ and the normal name is an alias.  */
  1905. #if defined (__stub_gethostent) || defined (__stub___gethostent)
  1906. choke me
  1907. #else
  1908. gethostent();
  1909. #endif
  1910.  
  1911. ; return 0; }
  1912. EOF
  1913. if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1914.   rm -rf conftest*
  1915.   eval "ac_cv_func_gethostent=yes"
  1916. else
  1917.   echo "configure: failed program was:" >&5
  1918.   cat conftest.$ac_ext >&5
  1919.   rm -rf conftest*
  1920.   eval "ac_cv_func_gethostent=no"
  1921. fi
  1922. rm -f conftest*
  1923. fi
  1924.  
  1925. if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
  1926.   echo "$ac_t""yes" 1>&6
  1927.   :
  1928. else
  1929.   echo "$ac_t""no" 1>&6
  1930. echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
  1931. echo "configure:1933: checking for gethostent in -lnsl" >&5
  1932. ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
  1933. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1934.   echo $ac_n "(cached) $ac_c" 1>&6
  1935. else
  1936.   ac_save_LIBS="$LIBS"
  1937. LIBS="-lnsl  $LIBS"
  1938. cat > conftest.$ac_ext <<EOF
  1939. #line 1941 "configure"
  1940. #include "confdefs.h"
  1941. /* Override any gcc2 internal prototype to avoid an error.  */
  1942. /* We use char because int might match the return type of a gcc2
  1943.     builtin and then its argument prototype would still apply.  */
  1944. char gethostent();
  1945.  
  1946. int main() {
  1947. gethostent()
  1948. ; return 0; }
  1949. EOF
  1950. if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1951.   rm -rf conftest*
  1952.   eval "ac_cv_lib_$ac_lib_var=yes"
  1953. else
  1954.   echo "configure: failed program was:" >&5
  1955.   cat conftest.$ac_ext >&5
  1956.   rm -rf conftest*
  1957.   eval "ac_cv_lib_$ac_lib_var=no"
  1958. fi
  1959. rm -f conftest*
  1960. LIBS="$ac_save_LIBS"
  1961.  
  1962. fi
  1963. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1964.   echo "$ac_t""yes" 1>&6
  1965.     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
  1966.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1967.   cat >> confdefs.h <<EOF
  1968. #define $ac_tr_lib 1
  1969. EOF
  1970.  
  1971.   LIBS="-lnsl $LIBS"
  1972.  
  1973. else
  1974.   echo "$ac_t""no" 1>&6
  1975. fi
  1976.  
  1977. fi
  1978.  
  1979. echo $ac_n "checking for db_open""... $ac_c" 1>&6
  1980. echo "configure:1982: checking for db_open" >&5
  1981. if eval "test \"`echo '$''{'ac_cv_func_db_open'+set}'`\" = set"; then
  1982.   echo $ac_n "(cached) $ac_c" 1>&6
  1983. else
  1984.   cat > conftest.$ac_ext <<EOF
  1985. #line 1987 "configure"
  1986. #include "confdefs.h"
  1987. /* System header to define __stub macros and hopefully few prototypes,
  1988.     which can conflict with char db_open(); below.  */
  1989. #include <assert.h>
  1990. /* Override any gcc2 internal prototype to avoid an error.  */
  1991. /* We use char because int might match the return type of a gcc2
  1992.     builtin and then its argument prototype would still apply.  */
  1993. char db_open();
  1994.  
  1995. int main() {
  1996.  
  1997. /* The GNU C library defines this for functions which it implements
  1998.     to always fail with ENOSYS.  Some functions are actually named
  1999.     something starting with __ and the normal name is an alias.  */
  2000. #if defined (__stub_db_open) || defined (__stub___db_open)
  2001. choke me
  2002. #else
  2003. db_open();
  2004. #endif
  2005.  
  2006. ; return 0; }
  2007. EOF
  2008. if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2009.   rm -rf conftest*
  2010.   eval "ac_cv_func_db_open=yes"
  2011. else
  2012.   echo "configure: failed program was:" >&5
  2013.   cat conftest.$ac_ext >&5
  2014.   rm -rf conftest*
  2015.   eval "ac_cv_func_db_open=no"
  2016. fi
  2017. rm -f conftest*
  2018. fi
  2019.  
  2020. if eval "test \"`echo '$ac_cv_func_'db_open`\" = yes"; then
  2021.   echo "$ac_t""yes" 1>&6
  2022.   cat >> confdefs.h <<\EOF
  2023. #define HAVE_DB_OPEN 1
  2024. EOF
  2025.  
  2026. else
  2027.   echo "$ac_t""no" 1>&6
  2028. echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
  2029. echo "configure:2031: checking for db_open in -ldb" >&5
  2030. ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
  2031. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2032.   echo $ac_n "(cached) $ac_c" 1>&6
  2033. else
  2034.   ac_save_LIBS="$LIBS"
  2035. LIBS="-ldb  $LIBS"
  2036. cat > conftest.$ac_ext <<EOF
  2037. #line 2039 "configure"
  2038. #include "confdefs.h"
  2039. /* Override any gcc2 internal prototype to avoid an error.  */
  2040. /* We use char because int might match the return type of a gcc2
  2041.     builtin and then its argument prototype would still apply.  */
  2042. char db_open();
  2043.  
  2044. int main() {
  2045. db_open()
  2046. ; return 0; }
  2047. EOF
  2048. if { (eval echo configure:2050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2049.   rm -rf conftest*
  2050.   eval "ac_cv_lib_$ac_lib_var=yes"
  2051. else
  2052.   echo "configure: failed program was:" >&5
  2053.   cat conftest.$ac_ext >&5
  2054.   rm -rf conftest*
  2055.   eval "ac_cv_lib_$ac_lib_var=no"
  2056. fi
  2057. rm -f conftest*
  2058. LIBS="$ac_save_LIBS"
  2059.  
  2060. fi
  2061. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2062.   echo "$ac_t""yes" 1>&6
  2063.     ac_tr_lib=HAVE_LIB`echo db | sed -e 's/^a-zA-Z0-9_/_/g' \
  2064.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2065.   cat >> confdefs.h <<EOF
  2066. #define $ac_tr_lib 1
  2067. EOF
  2068.  
  2069.   LIBS="-ldb $LIBS"
  2070.  
  2071. else
  2072.   echo "$ac_t""no" 1>&6
  2073. fi
  2074.  
  2075. fi
  2076.  
  2077.  
  2078. echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
  2079. echo "configure:2081: checking for main in -lwrap" >&5
  2080. ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
  2081. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2082.   echo $ac_n "(cached) $ac_c" 1>&6
  2083. else
  2084.   ac_save_LIBS="$LIBS"
  2085. LIBS="-lwrap  $LIBS"
  2086. cat > conftest.$ac_ext <<EOF
  2087. #line 2089 "configure"
  2088. #include "confdefs.h"
  2089.  
  2090. int main() {
  2091. main()
  2092. ; return 0; }
  2093. EOF
  2094. if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2095.   rm -rf conftest*
  2096.   eval "ac_cv_lib_$ac_lib_var=yes"
  2097. else
  2098.   echo "configure: failed program was:" >&5
  2099.   cat conftest.$ac_ext >&5
  2100.   rm -rf conftest*
  2101.   eval "ac_cv_lib_$ac_lib_var=no"
  2102. fi
  2103. rm -f conftest*
  2104. LIBS="$ac_save_LIBS"
  2105.  
  2106. fi
  2107. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2108.   echo "$ac_t""yes" 1>&6
  2109.     ac_tr_lib=HAVE_LIB`echo wrap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2110.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2111.   cat >> confdefs.h <<EOF
  2112. #define $ac_tr_lib 1
  2113. EOF
  2114.  
  2115.   LIBS="-lwrap $LIBS"
  2116.  
  2117. else
  2118.   echo "$ac_t""no" 1>&6
  2119. fi
  2120.            echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
  2121. echo "configure:2123: checking for main in -lrx" >&5
  2122. ac_lib_var=`echo rx'_'main | sed 'y%./+-%__p_%'`
  2123. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2124.   echo $ac_n "(cached) $ac_c" 1>&6
  2125. else
  2126.   ac_save_LIBS="$LIBS"
  2127. LIBS="-lrx  $LIBS"
  2128. cat > conftest.$ac_ext <<EOF
  2129. #line 2131 "configure"
  2130. #include "confdefs.h"
  2131.  
  2132. int main() {
  2133. main()
  2134. ; return 0; }
  2135. EOF
  2136. if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2137.   rm -rf conftest*
  2138.   eval "ac_cv_lib_$ac_lib_var=yes"
  2139. else
  2140.   echo "configure: failed program was:" >&5
  2141.   cat conftest.$ac_ext >&5
  2142.   rm -rf conftest*
  2143.   eval "ac_cv_lib_$ac_lib_var=no"
  2144. fi
  2145. rm -f conftest*
  2146. LIBS="$ac_save_LIBS"
  2147.  
  2148. fi
  2149. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2150.   echo "$ac_t""yes" 1>&6
  2151.     ac_tr_lib=HAVE_LIB`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2152.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2153.   cat >> confdefs.h <<EOF
  2154. #define $ac_tr_lib 1
  2155. EOF
  2156.  
  2157.   LIBS="-lrx $LIBS"
  2158.  
  2159. else
  2160.   echo "$ac_t""no" 1>&6
  2161. fi
  2162.              echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
  2163. echo "configure:2165: checking for main in -lcrypto" >&5
  2164. ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
  2165. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2166.   echo $ac_n "(cached) $ac_c" 1>&6
  2167. else
  2168.   ac_save_LIBS="$LIBS"
  2169. LIBS="-lcrypto  $LIBS"
  2170. cat > conftest.$ac_ext <<EOF
  2171. #line 2173 "configure"
  2172. #include "confdefs.h"
  2173.  
  2174. int main() {
  2175. main()
  2176. ; return 0; }
  2177. EOF
  2178. if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2179.   rm -rf conftest*
  2180.   eval "ac_cv_lib_$ac_lib_var=yes"
  2181. else
  2182.   echo "configure: failed program was:" >&5
  2183.   cat conftest.$ac_ext >&5
  2184.   rm -rf conftest*
  2185.   eval "ac_cv_lib_$ac_lib_var=no"
  2186. fi
  2187. rm -f conftest*
  2188. LIBS="$ac_save_LIBS"
  2189.  
  2190. fi
  2191. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2192.   echo "$ac_t""yes" 1>&6
  2193.     ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2194.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2195.   cat >> confdefs.h <<EOF
  2196. #define $ac_tr_lib 1
  2197. EOF
  2198.  
  2199.   LIBS="-lcrypto $LIBS"
  2200.  
  2201. else
  2202.   echo "$ac_t""no" 1>&6
  2203. fi
  2204.  
  2205.  
  2206.  
  2207.  
  2208. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2209. echo "configure:2211: checking how to run the C preprocessor" >&5
  2210. # On Suns, sometimes $CPP names a directory.
  2211. if test -n "$CPP" && test -d "$CPP"; then
  2212.   CPP=
  2213. fi
  2214. if test -z "$CPP"; then
  2215. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2216.   echo $ac_n "(cached) $ac_c" 1>&6
  2217. else
  2218.     # This must be in double quotes, not single quotes, because CPP may get
  2219.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  2220.   CPP="${CC-cc} -E"
  2221.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2222.   # not just through cpp.
  2223.   cat > conftest.$ac_ext <<EOF
  2224. #line 2226 "configure"
  2225. #include "confdefs.h"
  2226. #include <assert.h>
  2227. Syntax Error
  2228. EOF
  2229. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2230. { (eval echo configure:2232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2231. ac_err=`grep -v '^ *+' conftest.out`
  2232. if test -z "$ac_err"; then
  2233.   :
  2234. else
  2235.   echo "$ac_err" >&5
  2236.   echo "configure: failed program was:" >&5
  2237.   cat conftest.$ac_ext >&5
  2238.   rm -rf conftest*
  2239.   CPP="${CC-cc} -E -traditional-cpp"
  2240.   cat > conftest.$ac_ext <<EOF
  2241. #line 2243 "configure"
  2242. #include "confdefs.h"
  2243. #include <assert.h>
  2244. Syntax Error
  2245. EOF
  2246. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2247. { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2248. ac_err=`grep -v '^ *+' conftest.out`
  2249. if test -z "$ac_err"; then
  2250.   :
  2251. else
  2252.   echo "$ac_err" >&5
  2253.   echo "configure: failed program was:" >&5
  2254.   cat conftest.$ac_ext >&5
  2255.   rm -rf conftest*
  2256.   CPP=/lib/cpp
  2257. fi
  2258. rm -f conftest*
  2259. fi
  2260. rm -f conftest*
  2261.   ac_cv_prog_CPP="$CPP"
  2262. fi
  2263.   CPP="$ac_cv_prog_CPP"
  2264. else
  2265.   ac_cv_prog_CPP="$CPP"
  2266. fi
  2267. echo "$ac_t""$CPP" 1>&6
  2268.  
  2269. for ac_hdr in unistd.h stdlib.h
  2270. do
  2271. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2272. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2273. echo "configure:2275: checking for $ac_hdr" >&5
  2274. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2275.   echo $ac_n "(cached) $ac_c" 1>&6
  2276. else
  2277.   cat > conftest.$ac_ext <<EOF
  2278. #line 2280 "configure"
  2279. #include "confdefs.h"
  2280. #include <$ac_hdr>
  2281. EOF
  2282. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2283. { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2284. ac_err=`grep -v '^ *+' conftest.out`
  2285. if test -z "$ac_err"; then
  2286.   rm -rf conftest*
  2287.   eval "ac_cv_header_$ac_safe=yes"
  2288. else
  2289.   echo "$ac_err" >&5
  2290.   echo "configure: failed program was:" >&5
  2291.   cat conftest.$ac_ext >&5
  2292.   rm -rf conftest*
  2293.   eval "ac_cv_header_$ac_safe=no"
  2294. fi
  2295. rm -f conftest*
  2296. fi
  2297. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2298.   echo "$ac_t""yes" 1>&6
  2299.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2300.   cat >> confdefs.h <<EOF
  2301. #define $ac_tr_hdr 1
  2302. EOF
  2303.  
  2304. else
  2305.   echo "$ac_t""no" 1>&6
  2306. fi
  2307. done
  2308.  
  2309. for ac_hdr in sys/mount.h
  2310. do
  2311. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2312. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2313. echo "configure:2315: checking for $ac_hdr" >&5
  2314. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2315.   echo $ac_n "(cached) $ac_c" 1>&6
  2316. else
  2317.   cat > conftest.$ac_ext <<EOF
  2318. #line 2320 "configure"
  2319. #include "confdefs.h"
  2320. #include <$ac_hdr>
  2321. EOF
  2322. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2323. { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2324. ac_err=`grep -v '^ *+' conftest.out`
  2325. if test -z "$ac_err"; then
  2326.   rm -rf conftest*
  2327.   eval "ac_cv_header_$ac_safe=yes"
  2328. else
  2329.   echo "$ac_err" >&5
  2330.   echo "configure: failed program was:" >&5
  2331.   cat conftest.$ac_ext >&5
  2332.   rm -rf conftest*
  2333.   eval "ac_cv_header_$ac_safe=no"
  2334. fi
  2335. rm -f conftest*
  2336. fi
  2337. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2338.   echo "$ac_t""yes" 1>&6
  2339.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2340.   cat >> confdefs.h <<EOF
  2341. #define $ac_tr_hdr 1
  2342. EOF
  2343.  
  2344. else
  2345.   echo "$ac_t""no" 1>&6
  2346. fi
  2347. done
  2348.  
  2349. for ac_hdr in utime.h
  2350. do
  2351. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2352. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2353. echo "configure:2355: checking for $ac_hdr" >&5
  2354. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2355.   echo $ac_n "(cached) $ac_c" 1>&6
  2356. else
  2357.   cat > conftest.$ac_ext <<EOF
  2358. #line 2360 "configure"
  2359. #include "confdefs.h"
  2360. #include <$ac_hdr>
  2361. EOF
  2362. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2363. { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2364. ac_err=`grep -v '^ *+' conftest.out`
  2365. if test -z "$ac_err"; then
  2366.   rm -rf conftest*
  2367.   eval "ac_cv_header_$ac_safe=yes"
  2368. else
  2369.   echo "$ac_err" >&5
  2370.   echo "configure: failed program was:" >&5
  2371.   cat conftest.$ac_ext >&5
  2372.   rm -rf conftest*
  2373.   eval "ac_cv_header_$ac_safe=no"
  2374. fi
  2375. rm -f conftest*
  2376. fi
  2377. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2378.   echo "$ac_t""yes" 1>&6
  2379.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2380.   cat >> confdefs.h <<EOF
  2381. #define $ac_tr_hdr 1
  2382. EOF
  2383.  
  2384. else
  2385.   echo "$ac_t""no" 1>&6
  2386. fi
  2387. done
  2388.  
  2389. for ac_hdr in time.h
  2390. do
  2391. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2392. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2393. echo "configure:2395: checking for $ac_hdr" >&5
  2394. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2395.   echo $ac_n "(cached) $ac_c" 1>&6
  2396. else
  2397.   cat > conftest.$ac_ext <<EOF
  2398. #line 2400 "configure"
  2399. #include "confdefs.h"
  2400. #include <$ac_hdr>
  2401. EOF
  2402. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2403. { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2404. ac_err=`grep -v '^ *+' conftest.out`
  2405. if test -z "$ac_err"; then
  2406.   rm -rf conftest*
  2407.   eval "ac_cv_header_$ac_safe=yes"
  2408. else
  2409.   echo "$ac_err" >&5
  2410.   echo "configure: failed program was:" >&5
  2411.   cat conftest.$ac_ext >&5
  2412.   rm -rf conftest*
  2413.   eval "ac_cv_header_$ac_safe=no"
  2414. fi
  2415. rm -f conftest*
  2416. fi
  2417. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2418.   echo "$ac_t""yes" 1>&6
  2419.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2420.   cat >> confdefs.h <<EOF
  2421. #define $ac_tr_hdr 1
  2422. EOF
  2423.  
  2424. else
  2425.   echo "$ac_t""no" 1>&6
  2426. fi
  2427. done
  2428.  
  2429. for ac_hdr in sys/time.h
  2430. do
  2431. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2432. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2433. echo "configure:2435: checking for $ac_hdr" >&5
  2434. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2435.   echo $ac_n "(cached) $ac_c" 1>&6
  2436. else
  2437.   cat > conftest.$ac_ext <<EOF
  2438. #line 2440 "configure"
  2439. #include "confdefs.h"
  2440. #include <$ac_hdr>
  2441. EOF
  2442. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2443. { (eval echo configure:2445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2444. ac_err=`grep -v '^ *+' conftest.out`
  2445. if test -z "$ac_err"; then
  2446.   rm -rf conftest*
  2447.   eval "ac_cv_header_$ac_safe=yes"
  2448. else
  2449.   echo "$ac_err" >&5
  2450.   echo "configure: failed program was:" >&5
  2451.   cat conftest.$ac_ext >&5
  2452.   rm -rf conftest*
  2453.   eval "ac_cv_header_$ac_safe=no"
  2454. fi
  2455. rm -f conftest*
  2456. fi
  2457. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2458.   echo "$ac_t""yes" 1>&6
  2459.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2460.   cat >> confdefs.h <<EOF
  2461. #define $ac_tr_hdr 1
  2462. EOF
  2463.  
  2464. else
  2465.   echo "$ac_t""no" 1>&6
  2466. fi
  2467. done
  2468.  
  2469. for ac_hdr in malloc.h
  2470. do
  2471. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2472. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2473. echo "configure:2475: checking for $ac_hdr" >&5
  2474. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2475.   echo $ac_n "(cached) $ac_c" 1>&6
  2476. else
  2477.   cat > conftest.$ac_ext <<EOF
  2478. #line 2480 "configure"
  2479. #include "confdefs.h"
  2480. #include <$ac_hdr>
  2481. EOF
  2482. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2483. { (eval echo configure:2485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2484. ac_err=`grep -v '^ *+' conftest.out`
  2485. if test -z "$ac_err"; then
  2486.   rm -rf conftest*
  2487.   eval "ac_cv_header_$ac_safe=yes"
  2488. else
  2489.   echo "$ac_err" >&5
  2490.   echo "configure: failed program was:" >&5
  2491.   cat conftest.$ac_ext >&5
  2492.   rm -rf conftest*
  2493.   eval "ac_cv_header_$ac_safe=no"
  2494. fi
  2495. rm -f conftest*
  2496. fi
  2497. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2498.   echo "$ac_t""yes" 1>&6
  2499.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2500.   cat >> confdefs.h <<EOF
  2501. #define $ac_tr_hdr 1
  2502. EOF
  2503.  
  2504. else
  2505.   echo "$ac_t""no" 1>&6
  2506. fi
  2507. done
  2508.  
  2509. for ac_hdr in vfs.h
  2510. do
  2511. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2512. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2513. echo "configure:2515: checking for $ac_hdr" >&5
  2514. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2515.   echo $ac_n "(cached) $ac_c" 1>&6
  2516. else
  2517.   cat > conftest.$ac_ext <<EOF
  2518. #line 2520 "configure"
  2519. #include "confdefs.h"
  2520. #include <$ac_hdr>
  2521. EOF
  2522. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2523. { (eval echo configure:2525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2524. ac_err=`grep -v '^ *+' conftest.out`
  2525. if test -z "$ac_err"; then
  2526.   rm -rf conftest*
  2527.   eval "ac_cv_header_$ac_safe=yes"
  2528. else
  2529.   echo "$ac_err" >&5
  2530.   echo "configure: failed program was:" >&5
  2531.   cat conftest.$ac_ext >&5
  2532.   rm -rf conftest*
  2533.   eval "ac_cv_header_$ac_safe=no"
  2534. fi
  2535. rm -f conftest*
  2536. fi
  2537. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2538.   echo "$ac_t""yes" 1>&6
  2539.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2540.   cat >> confdefs.h <<EOF
  2541. #define $ac_tr_hdr 1
  2542. EOF
  2543.  
  2544. else
  2545.   echo "$ac_t""no" 1>&6
  2546. fi
  2547. done
  2548.  
  2549. for ac_hdr in sys/vfs.h
  2550. do
  2551. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2552. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2553. echo "configure:2555: checking for $ac_hdr" >&5
  2554. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2555.   echo $ac_n "(cached) $ac_c" 1>&6
  2556. else
  2557.   cat > conftest.$ac_ext <<EOF
  2558. #line 2560 "configure"
  2559. #include "confdefs.h"
  2560. #include <$ac_hdr>
  2561. EOF
  2562. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2563. { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2564. ac_err=`grep -v '^ *+' conftest.out`
  2565. if test -z "$ac_err"; then
  2566.   rm -rf conftest*
  2567.   eval "ac_cv_header_$ac_safe=yes"
  2568. else
  2569.   echo "$ac_err" >&5
  2570.   echo "configure: failed program was:" >&5
  2571.   cat conftest.$ac_ext >&5
  2572.   rm -rf conftest*
  2573.   eval "ac_cv_header_$ac_safe=no"
  2574. fi
  2575. rm -f conftest*
  2576. fi
  2577. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2578.   echo "$ac_t""yes" 1>&6
  2579.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2580.   cat >> confdefs.h <<EOF
  2581. #define $ac_tr_hdr 1
  2582. EOF
  2583.  
  2584. else
  2585.   echo "$ac_t""no" 1>&6
  2586. fi
  2587. done
  2588.  
  2589. for ac_hdr in sys/sockio.h
  2590. do
  2591. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2592. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2593. echo "configure:2595: checking for $ac_hdr" >&5
  2594. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2595.   echo $ac_n "(cached) $ac_c" 1>&6
  2596. else
  2597.   cat > conftest.$ac_ext <<EOF
  2598. #line 2600 "configure"
  2599. #include "confdefs.h"
  2600. #include <$ac_hdr>
  2601. EOF
  2602. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2603. { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2604. ac_err=`grep -v '^ *+' conftest.out`
  2605. if test -z "$ac_err"; then
  2606.   rm -rf conftest*
  2607.   eval "ac_cv_header_$ac_safe=yes"
  2608. else
  2609.   echo "$ac_err" >&5
  2610.   echo "configure: failed program was:" >&5
  2611.   cat conftest.$ac_ext >&5
  2612.   rm -rf conftest*
  2613.   eval "ac_cv_header_$ac_safe=no"
  2614. fi
  2615. rm -f conftest*
  2616. fi
  2617. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2618.   echo "$ac_t""yes" 1>&6
  2619.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2620.   cat >> confdefs.h <<EOF
  2621. #define $ac_tr_hdr 1
  2622. EOF
  2623.  
  2624. else
  2625.   echo "$ac_t""no" 1>&6
  2626. fi
  2627. done
  2628.  
  2629. for ac_hdr in sys/statvfs.h
  2630. do
  2631. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2632. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2633. echo "configure:2635: checking for $ac_hdr" >&5
  2634. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2635.   echo $ac_n "(cached) $ac_c" 1>&6
  2636. else
  2637.   cat > conftest.$ac_ext <<EOF
  2638. #line 2640 "configure"
  2639. #include "confdefs.h"
  2640. #include <$ac_hdr>
  2641. EOF
  2642. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2643. { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2644. ac_err=`grep -v '^ *+' conftest.out`
  2645. if test -z "$ac_err"; then
  2646.   rm -rf conftest*
  2647.   eval "ac_cv_header_$ac_safe=yes"
  2648. else
  2649.   echo "$ac_err" >&5
  2650.   echo "configure: failed program was:" >&5
  2651.   cat conftest.$ac_ext >&5
  2652.   rm -rf conftest*
  2653.   eval "ac_cv_header_$ac_safe=no"
  2654. fi
  2655. rm -f conftest*
  2656. fi
  2657. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2658.   echo "$ac_t""yes" 1>&6
  2659.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2660.   cat >> confdefs.h <<EOF
  2661. #define $ac_tr_hdr 1
  2662. EOF
  2663.  
  2664. else
  2665.   echo "$ac_t""no" 1>&6
  2666. fi
  2667. done
  2668.  
  2669. for ac_hdr in sys/statfs.h
  2670. do
  2671. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2672. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2673. echo "configure:2675: checking for $ac_hdr" >&5
  2674. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2675.   echo $ac_n "(cached) $ac_c" 1>&6
  2676. else
  2677.   cat > conftest.$ac_ext <<EOF
  2678. #line 2680 "configure"
  2679. #include "confdefs.h"
  2680. #include <$ac_hdr>
  2681. EOF
  2682. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2683. { (eval echo configure:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2684. ac_err=`grep -v '^ *+' conftest.out`
  2685. if test -z "$ac_err"; then
  2686.   rm -rf conftest*
  2687.   eval "ac_cv_header_$ac_safe=yes"
  2688. else
  2689.   echo "$ac_err" >&5
  2690.   echo "configure: failed program was:" >&5
  2691.   cat conftest.$ac_ext >&5
  2692.   rm -rf conftest*
  2693.   eval "ac_cv_header_$ac_safe=no"
  2694. fi
  2695. rm -f conftest*
  2696. fi
  2697. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2698.   echo "$ac_t""yes" 1>&6
  2699.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2700.   cat >> confdefs.h <<EOF
  2701. #define $ac_tr_hdr 1
  2702. EOF
  2703.  
  2704. else
  2705.   echo "$ac_t""no" 1>&6
  2706. fi
  2707. done
  2708.  
  2709. for ac_hdr in sys/param.h
  2710. do
  2711. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2712. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2713. echo "configure:2715: checking for $ac_hdr" >&5
  2714. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2715.   echo $ac_n "(cached) $ac_c" 1>&6
  2716. else
  2717.   cat > conftest.$ac_ext <<EOF
  2718. #line 2720 "configure"
  2719. #include "confdefs.h"
  2720. #include <$ac_hdr>
  2721. EOF
  2722. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2723. { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2724. ac_err=`grep -v '^ *+' conftest.out`
  2725. if test -z "$ac_err"; then
  2726.   rm -rf conftest*
  2727.   eval "ac_cv_header_$ac_safe=yes"
  2728. else
  2729.   echo "$ac_err" >&5
  2730.   echo "configure: failed program was:" >&5
  2731.   cat conftest.$ac_ext >&5
  2732.   rm -rf conftest*
  2733.   eval "ac_cv_header_$ac_safe=no"
  2734. fi
  2735. rm -f conftest*
  2736. fi
  2737. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2738.   echo "$ac_t""yes" 1>&6
  2739.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2740.   cat >> confdefs.h <<EOF
  2741. #define $ac_tr_hdr 1
  2742. EOF
  2743.  
  2744. else
  2745.   echo "$ac_t""no" 1>&6
  2746. fi
  2747. done
  2748.  
  2749. for ac_hdr in fcntl.h
  2750. do
  2751. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2752. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2753. echo "configure:2755: checking for $ac_hdr" >&5
  2754. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2755.   echo $ac_n "(cached) $ac_c" 1>&6
  2756. else
  2757.   cat > conftest.$ac_ext <<EOF
  2758. #line 2760 "configure"
  2759. #include "confdefs.h"
  2760. #include <$ac_hdr>
  2761. EOF
  2762. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2763. { (eval echo configure:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2764. ac_err=`grep -v '^ *+' conftest.out`
  2765. if test -z "$ac_err"; then
  2766.   rm -rf conftest*
  2767.   eval "ac_cv_header_$ac_safe=yes"
  2768. else
  2769.   echo "$ac_err" >&5
  2770.   echo "configure: failed program was:" >&5
  2771.   cat conftest.$ac_ext >&5
  2772.   rm -rf conftest*
  2773.   eval "ac_cv_header_$ac_safe=no"
  2774. fi
  2775. rm -f conftest*
  2776. fi
  2777. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2778.   echo "$ac_t""yes" 1>&6
  2779.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2780.   cat >> confdefs.h <<EOF
  2781. #define $ac_tr_hdr 1
  2782. EOF
  2783.  
  2784. else
  2785.   echo "$ac_t""no" 1>&6
  2786. fi
  2787. done
  2788.  
  2789. for ac_hdr in sys/filesys.h
  2790. do
  2791. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2792. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2793. echo "configure:2795: checking for $ac_hdr" >&5
  2794. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2795.   echo $ac_n "(cached) $ac_c" 1>&6
  2796. else
  2797.   cat > conftest.$ac_ext <<EOF
  2798. #line 2800 "configure"
  2799. #include "confdefs.h"
  2800. #include <$ac_hdr>
  2801. EOF
  2802. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2803. { (eval echo configure:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2804. ac_err=`grep -v '^ *+' conftest.out`
  2805. if test -z "$ac_err"; then
  2806.   rm -rf conftest*
  2807.   eval "ac_cv_header_$ac_safe=yes"
  2808. else
  2809.   echo "$ac_err" >&5
  2810.   echo "configure: failed program was:" >&5
  2811.   cat conftest.$ac_ext >&5
  2812.   rm -rf conftest*
  2813.   eval "ac_cv_header_$ac_safe=no"
  2814. fi
  2815. rm -f conftest*
  2816. fi
  2817. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2818.   echo "$ac_t""yes" 1>&6
  2819.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2820.   cat >> confdefs.h <<EOF
  2821. #define $ac_tr_hdr 1
  2822. EOF
  2823.  
  2824. else
  2825.   echo "$ac_t""no" 1>&6
  2826. fi
  2827. done
  2828.  
  2829. for ac_hdr in dustat.h
  2830. do
  2831. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2832. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2833. echo "configure:2835: checking for $ac_hdr" >&5
  2834. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2835.   echo $ac_n "(cached) $ac_c" 1>&6
  2836. else
  2837.   cat > conftest.$ac_ext <<EOF
  2838. #line 2840 "configure"
  2839. #include "confdefs.h"
  2840. #include <$ac_hdr>
  2841. EOF
  2842. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2843. { (eval echo configure:2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2844. ac_err=`grep -v '^ *+' conftest.out`
  2845. if test -z "$ac_err"; then
  2846.   rm -rf conftest*
  2847.   eval "ac_cv_header_$ac_safe=yes"
  2848. else
  2849.   echo "$ac_err" >&5
  2850.   echo "configure: failed program was:" >&5
  2851.   cat conftest.$ac_ext >&5
  2852.   rm -rf conftest*
  2853.   eval "ac_cv_header_$ac_safe=no"
  2854. fi
  2855. rm -f conftest*
  2856. fi
  2857. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2858.   echo "$ac_t""yes" 1>&6
  2859.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2860.   cat >> confdefs.h <<EOF
  2861. #define $ac_tr_hdr 1
  2862. EOF
  2863.  
  2864. else
  2865.   echo "$ac_t""no" 1>&6
  2866. fi
  2867. done
  2868.  
  2869. for ac_hdr in tcpd.h
  2870. do
  2871. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2872. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2873. echo "configure:2875: checking for $ac_hdr" >&5
  2874. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2875.   echo $ac_n "(cached) $ac_c" 1>&6
  2876. else
  2877.   cat > conftest.$ac_ext <<EOF
  2878. #line 2880 "configure"
  2879. #include "confdefs.h"
  2880. #include <$ac_hdr>
  2881. EOF
  2882. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2883. { (eval echo configure:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2884. ac_err=`grep -v '^ *+' conftest.out`
  2885. if test -z "$ac_err"; then
  2886.   rm -rf conftest*
  2887.   eval "ac_cv_header_$ac_safe=yes"
  2888. else
  2889.   echo "$ac_err" >&5
  2890.   echo "configure: failed program was:" >&5
  2891.   cat conftest.$ac_ext >&5
  2892.   rm -rf conftest*
  2893.   eval "ac_cv_header_$ac_safe=no"
  2894. fi
  2895. rm -f conftest*
  2896. fi
  2897. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2898.   echo "$ac_t""yes" 1>&6
  2899.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2900.   cat >> confdefs.h <<EOF
  2901. #define $ac_tr_hdr 1
  2902. EOF
  2903.  
  2904. else
  2905.   echo "$ac_t""no" 1>&6
  2906. fi
  2907. done
  2908.  
  2909. for ac_hdr in db_2.h db.h regex.h rxposix.h
  2910. do
  2911. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2912. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2913. echo "configure:2915: checking for $ac_hdr" >&5
  2914. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2915.   echo $ac_n "(cached) $ac_c" 1>&6
  2916. else
  2917.   cat > conftest.$ac_ext <<EOF
  2918. #line 2920 "configure"
  2919. #include "confdefs.h"
  2920. #include <$ac_hdr>
  2921. EOF
  2922. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2923. { (eval echo configure:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2924. ac_err=`grep -v '^ *+' conftest.out`
  2925. if test -z "$ac_err"; then
  2926.   rm -rf conftest*
  2927.   eval "ac_cv_header_$ac_safe=yes"
  2928. else
  2929.   echo "$ac_err" >&5
  2930.   echo "configure: failed program was:" >&5
  2931.   cat conftest.$ac_ext >&5
  2932.   rm -rf conftest*
  2933.   eval "ac_cv_header_$ac_safe=no"
  2934. fi
  2935. rm -f conftest*
  2936. fi
  2937. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2938.   echo "$ac_t""yes" 1>&6
  2939.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2940.   cat >> confdefs.h <<EOF
  2941. #define $ac_tr_hdr 1
  2942. EOF
  2943.  
  2944. else
  2945.   echo "$ac_t""no" 1>&6
  2946. fi
  2947. done
  2948.  
  2949. for ac_hdr in db_185.h
  2950. do
  2951. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2952. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2953. echo "configure:2955: checking for $ac_hdr" >&5
  2954. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2955.   echo $ac_n "(cached) $ac_c" 1>&6
  2956. else
  2957.   cat > conftest.$ac_ext <<EOF
  2958. #line 2960 "configure"
  2959. #include "confdefs.h"
  2960. #include <$ac_hdr>
  2961. EOF
  2962. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2963. { (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2964. ac_err=`grep -v '^ *+' conftest.out`
  2965. if test -z "$ac_err"; then
  2966.   rm -rf conftest*
  2967.   eval "ac_cv_header_$ac_safe=yes"
  2968. else
  2969.   echo "$ac_err" >&5
  2970.   echo "configure: failed program was:" >&5
  2971.   cat conftest.$ac_ext >&5
  2972.   rm -rf conftest*
  2973.   eval "ac_cv_header_$ac_safe=no"
  2974. fi
  2975. rm -f conftest*
  2976. fi
  2977. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2978.   echo "$ac_t""yes" 1>&6
  2979.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2980.   cat >> confdefs.h <<EOF
  2981. #define $ac_tr_hdr 1
  2982. EOF
  2983.  
  2984. else
  2985.   echo "$ac_t""no" 1>&6
  2986. fi
  2987. done
  2988.  
  2989. for ac_hdr in db/db.h
  2990. do
  2991. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2992. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2993. echo "configure:2995: checking for $ac_hdr" >&5
  2994. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2995.   echo $ac_n "(cached) $ac_c" 1>&6
  2996. else
  2997.   cat > conftest.$ac_ext <<EOF
  2998. #line 3000 "configure"
  2999. #include "confdefs.h"
  3000. #include <$ac_hdr>
  3001. EOF
  3002. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3003. { (eval echo configure:3005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3004. ac_err=`grep -v '^ *+' conftest.out`
  3005. if test -z "$ac_err"; then
  3006.   rm -rf conftest*
  3007.   eval "ac_cv_header_$ac_safe=yes"
  3008. else
  3009.   echo "$ac_err" >&5
  3010.   echo "configure: failed program was:" >&5
  3011.   cat conftest.$ac_ext >&5
  3012.   rm -rf conftest*
  3013.   eval "ac_cv_header_$ac_safe=no"
  3014. fi
  3015. rm -f conftest*
  3016. fi
  3017. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3018.   echo "$ac_t""yes" 1>&6
  3019.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3020.   cat >> confdefs.h <<EOF
  3021. #define $ac_tr_hdr 1
  3022. EOF
  3023.  
  3024. else
  3025.   echo "$ac_t""no" 1>&6
  3026. fi
  3027. done
  3028.  
  3029. for ac_hdr in sys/systeminfo.h
  3030. do
  3031. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3032. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3033. echo "configure:3035: checking for $ac_hdr" >&5
  3034. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3035.   echo $ac_n "(cached) $ac_c" 1>&6
  3036. else
  3037.   cat > conftest.$ac_ext <<EOF
  3038. #line 3040 "configure"
  3039. #include "confdefs.h"
  3040. #include <$ac_hdr>
  3041. EOF
  3042. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3043. { (eval echo configure:3045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3044. ac_err=`grep -v '^ *+' conftest.out`
  3045. if test -z "$ac_err"; then
  3046.   rm -rf conftest*
  3047.   eval "ac_cv_header_$ac_safe=yes"
  3048. else
  3049.   echo "$ac_err" >&5
  3050.   echo "configure: failed program was:" >&5
  3051.   cat conftest.$ac_ext >&5
  3052.   rm -rf conftest*
  3053.   eval "ac_cv_header_$ac_safe=no"
  3054. fi
  3055. rm -f conftest*
  3056. fi
  3057. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3058.   echo "$ac_t""yes" 1>&6
  3059.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3060.   cat >> confdefs.h <<EOF
  3061. #define $ac_tr_hdr 1
  3062. EOF
  3063.  
  3064. else
  3065.   echo "$ac_t""no" 1>&6
  3066. fi
  3067. done
  3068.  
  3069. for ac_hdr in sys/acl.h
  3070. do
  3071. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3072. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3073. echo "configure:3075: checking for $ac_hdr" >&5
  3074. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3075.   echo $ac_n "(cached) $ac_c" 1>&6
  3076. else
  3077.   cat > conftest.$ac_ext <<EOF
  3078. #line 3080 "configure"
  3079. #include "confdefs.h"
  3080. #include <$ac_hdr>
  3081. EOF
  3082. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3083. { (eval echo configure:3085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3084. ac_err=`grep -v '^ *+' conftest.out`
  3085. if test -z "$ac_err"; then
  3086.   rm -rf conftest*
  3087.   eval "ac_cv_header_$ac_safe=yes"
  3088. else
  3089.   echo "$ac_err" >&5
  3090.   echo "configure: failed program was:" >&5
  3091.   cat conftest.$ac_ext >&5
  3092.   rm -rf conftest*
  3093.   eval "ac_cv_header_$ac_safe=no"
  3094. fi
  3095. rm -f conftest*
  3096. fi
  3097. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3098.   echo "$ac_t""yes" 1>&6
  3099.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3100.   cat >> confdefs.h <<EOF
  3101. #define $ac_tr_hdr 1
  3102. EOF
  3103.  
  3104. else
  3105.   echo "$ac_t""no" 1>&6
  3106. fi
  3107. done
  3108.  
  3109. for ac_hdr in openssl/des.h
  3110. do
  3111. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3112. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3113. echo "configure:3115: checking for $ac_hdr" >&5
  3114. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3115.   echo $ac_n "(cached) $ac_c" 1>&6
  3116. else
  3117.   cat > conftest.$ac_ext <<EOF
  3118. #line 3120 "configure"
  3119. #include "confdefs.h"
  3120. #include <$ac_hdr>
  3121. EOF
  3122. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3123. { (eval echo configure:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3124. ac_err=`grep -v '^ *+' conftest.out`
  3125. if test -z "$ac_err"; then
  3126.   rm -rf conftest*
  3127.   eval "ac_cv_header_$ac_safe=yes"
  3128. else
  3129.   echo "$ac_err" >&5
  3130.   echo "configure: failed program was:" >&5
  3131.   cat conftest.$ac_ext >&5
  3132.   rm -rf conftest*
  3133.   eval "ac_cv_header_$ac_safe=no"
  3134. fi
  3135. rm -f conftest*
  3136. fi
  3137. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3138.   echo "$ac_t""yes" 1>&6
  3139.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3140.   cat >> confdefs.h <<EOF
  3141. #define $ac_tr_hdr 1
  3142. EOF
  3143.  
  3144. else
  3145.   echo "$ac_t""no" 1>&6
  3146. fi
  3147. done
  3148.  
  3149.  
  3150. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  3151. echo "configure:3153: checking for ANSI C header files" >&5
  3152. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  3153.   echo $ac_n "(cached) $ac_c" 1>&6
  3154. else
  3155.   cat > conftest.$ac_ext <<EOF
  3156. #line 3158 "configure"
  3157. #include "confdefs.h"
  3158. #include <stdlib.h>
  3159. #include <stdarg.h>
  3160. #include <string.h>
  3161. #include <float.h>
  3162. EOF
  3163. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3164. { (eval echo configure:3166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3165. ac_err=`grep -v '^ *+' conftest.out`
  3166. if test -z "$ac_err"; then
  3167.   rm -rf conftest*
  3168.   ac_cv_header_stdc=yes
  3169. else
  3170.   echo "$ac_err" >&5
  3171.   echo "configure: failed program was:" >&5
  3172.   cat conftest.$ac_ext >&5
  3173.   rm -rf conftest*
  3174.   ac_cv_header_stdc=no
  3175. fi
  3176. rm -f conftest*
  3177.  
  3178. if test $ac_cv_header_stdc = yes; then
  3179.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3180. cat > conftest.$ac_ext <<EOF
  3181. #line 3183 "configure"
  3182. #include "confdefs.h"
  3183. #include <string.h>
  3184. EOF
  3185. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3186.   egrep "memchr" >/dev/null 2>&1; then
  3187.   :
  3188. else
  3189.   rm -rf conftest*
  3190.   ac_cv_header_stdc=no
  3191. fi
  3192. rm -f conftest*
  3193.  
  3194. fi
  3195.  
  3196. if test $ac_cv_header_stdc = yes; then
  3197.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3198. cat > conftest.$ac_ext <<EOF
  3199. #line 3201 "configure"
  3200. #include "confdefs.h"
  3201. #include <stdlib.h>
  3202. EOF
  3203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3204.   egrep "free" >/dev/null 2>&1; then
  3205.   :
  3206. else
  3207.   rm -rf conftest*
  3208.   ac_cv_header_stdc=no
  3209. fi
  3210. rm -f conftest*
  3211.  
  3212. fi
  3213.  
  3214. if test $ac_cv_header_stdc = yes; then
  3215.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3216. if test "$cross_compiling" = yes; then
  3217.   :
  3218. else
  3219.   cat > conftest.$ac_ext <<EOF
  3220. #line 3222 "configure"
  3221. #include "confdefs.h"
  3222. #include <ctype.h>
  3223. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3224. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3225. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3226. int main () { int i; for (i = 0; i < 256; i++)
  3227. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  3228. exit (0); }
  3229.  
  3230. EOF
  3231. if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  3232. then
  3233.   :
  3234. else
  3235.   echo "configure: failed program was:" >&5
  3236.   cat conftest.$ac_ext >&5
  3237.   rm -fr conftest*
  3238.   ac_cv_header_stdc=no
  3239. fi
  3240. rm -fr conftest*
  3241. fi
  3242.  
  3243. fi
  3244. fi
  3245.  
  3246. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  3247. if test $ac_cv_header_stdc = yes; then
  3248.   cat >> confdefs.h <<\EOF
  3249. #define STDC_HEADERS 1
  3250. EOF
  3251.  
  3252. fi
  3253.  
  3254. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  3255. echo "configure:3257: checking whether time.h and sys/time.h may both be included" >&5
  3256. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  3257.   echo $ac_n "(cached) $ac_c" 1>&6
  3258. else
  3259.   cat > conftest.$ac_ext <<EOF
  3260. #line 3262 "configure"
  3261. #include "confdefs.h"
  3262. #include <sys/types.h>
  3263. #include <sys/time.h>
  3264. #include <time.h>
  3265. int main() {
  3266. struct tm *tp;
  3267. ; return 0; }
  3268. EOF
  3269. if { (eval echo configure:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3270.   rm -rf conftest*
  3271.   ac_cv_header_time=yes
  3272. else
  3273.   echo "configure: failed program was:" >&5
  3274.   cat conftest.$ac_ext >&5
  3275.   rm -rf conftest*
  3276.   ac_cv_header_time=no
  3277. fi
  3278. rm -f conftest*
  3279. fi
  3280.  
  3281. echo "$ac_t""$ac_cv_header_time" 1>&6
  3282. if test $ac_cv_header_time = yes; then
  3283.   cat >> confdefs.h <<\EOF
  3284. #define TIME_WITH_SYS_TIME 1
  3285. EOF
  3286.  
  3287. fi
  3288.  
  3289. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  3290. echo "configure:3292: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3291. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  3292.   echo $ac_n "(cached) $ac_c" 1>&6
  3293. else
  3294.   cat > conftest.$ac_ext <<EOF
  3295. #line 3297 "configure"
  3296. #include "confdefs.h"
  3297. #include <sys/types.h>
  3298. #include <sys/wait.h>
  3299. #ifndef WEXITSTATUS
  3300. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3301. #endif
  3302. #ifndef WIFEXITED
  3303. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3304. #endif
  3305. int main() {
  3306. int s;
  3307. wait (&s);
  3308. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3309. ; return 0; }
  3310. EOF
  3311. if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3312.   rm -rf conftest*
  3313.   ac_cv_header_sys_wait_h=yes
  3314. else
  3315.   echo "configure: failed program was:" >&5
  3316.   cat conftest.$ac_ext >&5
  3317.   rm -rf conftest*
  3318.   ac_cv_header_sys_wait_h=no
  3319. fi
  3320. rm -f conftest*
  3321. fi
  3322.  
  3323. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  3324. if test $ac_cv_header_sys_wait_h = yes; then
  3325.   cat >> confdefs.h <<\EOF
  3326. #define HAVE_SYS_WAIT_H 1
  3327. EOF
  3328.  
  3329. fi
  3330.  
  3331. ac_header_dirent=no
  3332. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  3333. do
  3334. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3335. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  3336. echo "configure:3338: checking for $ac_hdr that defines DIR" >&5
  3337. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  3338.   echo $ac_n "(cached) $ac_c" 1>&6
  3339. else
  3340.   cat > conftest.$ac_ext <<EOF
  3341. #line 3343 "configure"
  3342. #include "confdefs.h"
  3343. #include <sys/types.h>
  3344. #include <$ac_hdr>
  3345. int main() {
  3346. DIR *dirp = 0;
  3347. ; return 0; }
  3348. EOF
  3349. if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3350.   rm -rf conftest*
  3351.   eval "ac_cv_header_dirent_$ac_safe=yes"
  3352. else
  3353.   echo "configure: failed program was:" >&5
  3354.   cat conftest.$ac_ext >&5
  3355.   rm -rf conftest*
  3356.   eval "ac_cv_header_dirent_$ac_safe=no"
  3357. fi
  3358. rm -f conftest*
  3359. fi
  3360. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  3361.   echo "$ac_t""yes" 1>&6
  3362.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3363.   cat >> confdefs.h <<EOF
  3364. #define $ac_tr_hdr 1
  3365. EOF
  3366.  ac_header_dirent=$ac_hdr; break
  3367. else
  3368.   echo "$ac_t""no" 1>&6
  3369. fi
  3370. done
  3371. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  3372. if test $ac_header_dirent = dirent.h; then
  3373. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  3374. echo "configure:3376: checking for opendir in -ldir" >&5
  3375. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  3376. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3377.   echo $ac_n "(cached) $ac_c" 1>&6
  3378. else
  3379.   ac_save_LIBS="$LIBS"
  3380. LIBS="-ldir  $LIBS"
  3381. cat > conftest.$ac_ext <<EOF
  3382. #line 3384 "configure"
  3383. #include "confdefs.h"
  3384. /* Override any gcc2 internal prototype to avoid an error.  */
  3385. /* We use char because int might match the return type of a gcc2
  3386.     builtin and then its argument prototype would still apply.  */
  3387. char opendir();
  3388.  
  3389. int main() {
  3390. opendir()
  3391. ; return 0; }
  3392. EOF
  3393. if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3394.   rm -rf conftest*
  3395.   eval "ac_cv_lib_$ac_lib_var=yes"
  3396. else
  3397.   echo "configure: failed program was:" >&5
  3398.   cat conftest.$ac_ext >&5
  3399.   rm -rf conftest*
  3400.   eval "ac_cv_lib_$ac_lib_var=no"
  3401. fi
  3402. rm -f conftest*
  3403. LIBS="$ac_save_LIBS"
  3404.  
  3405. fi
  3406. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3407.   echo "$ac_t""yes" 1>&6
  3408.   LIBS="$LIBS -ldir"
  3409. else
  3410.   echo "$ac_t""no" 1>&6
  3411. fi
  3412.  
  3413. else
  3414. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  3415. echo "configure:3417: checking for opendir in -lx" >&5
  3416. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  3417. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3418.   echo $ac_n "(cached) $ac_c" 1>&6
  3419. else
  3420.   ac_save_LIBS="$LIBS"
  3421. LIBS="-lx  $LIBS"
  3422. cat > conftest.$ac_ext <<EOF
  3423. #line 3425 "configure"
  3424. #include "confdefs.h"
  3425. /* Override any gcc2 internal prototype to avoid an error.  */
  3426. /* We use char because int might match the return type of a gcc2
  3427.     builtin and then its argument prototype would still apply.  */
  3428. char opendir();
  3429.  
  3430. int main() {
  3431. opendir()
  3432. ; return 0; }
  3433. EOF
  3434. if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3435.   rm -rf conftest*
  3436.   eval "ac_cv_lib_$ac_lib_var=yes"
  3437. else
  3438.   echo "configure: failed program was:" >&5
  3439.   cat conftest.$ac_ext >&5
  3440.   rm -rf conftest*
  3441.   eval "ac_cv_lib_$ac_lib_var=no"
  3442. fi
  3443. rm -f conftest*
  3444. LIBS="$ac_save_LIBS"
  3445.  
  3446. fi
  3447. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3448.   echo "$ac_t""yes" 1>&6
  3449.   LIBS="$LIBS -lx"
  3450. else
  3451.   echo "$ac_t""no" 1>&6
  3452. fi
  3453.  
  3454. fi
  3455.  
  3456.  
  3457.  
  3458.  
  3459. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  3460. echo "configure:3462: checking for mode_t" >&5
  3461. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  3462.   echo $ac_n "(cached) $ac_c" 1>&6
  3463. else
  3464.   cat > conftest.$ac_ext <<EOF
  3465. #line 3467 "configure"
  3466. #include "confdefs.h"
  3467. #include <sys/types.h>
  3468. #if STDC_HEADERS
  3469. #include <stdlib.h>
  3470. #include <stddef.h>
  3471. #endif
  3472. EOF
  3473. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3474.   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3475.   rm -rf conftest*
  3476.   ac_cv_type_mode_t=yes
  3477. else
  3478.   rm -rf conftest*
  3479.   ac_cv_type_mode_t=no
  3480. fi
  3481. rm -f conftest*
  3482.  
  3483. fi
  3484. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  3485. if test $ac_cv_type_mode_t = no; then
  3486.   cat >> confdefs.h <<\EOF
  3487. #define mode_t int
  3488. EOF
  3489.  
  3490. fi
  3491.  
  3492. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  3493. echo "configure:3495: checking for size_t" >&5
  3494. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  3495.   echo $ac_n "(cached) $ac_c" 1>&6
  3496. else
  3497.   cat > conftest.$ac_ext <<EOF
  3498. #line 3500 "configure"
  3499. #include "confdefs.h"
  3500. #include <sys/types.h>
  3501. #if STDC_HEADERS
  3502. #include <stdlib.h>
  3503. #include <stddef.h>
  3504. #endif
  3505. EOF
  3506. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3507.   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3508.   rm -rf conftest*
  3509.   ac_cv_type_size_t=yes
  3510. else
  3511.   rm -rf conftest*
  3512.   ac_cv_type_size_t=no
  3513. fi
  3514. rm -f conftest*
  3515.  
  3516. fi
  3517. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  3518. if test $ac_cv_type_size_t = no; then
  3519.   cat >> confdefs.h <<\EOF
  3520. #define size_t unsigned
  3521. EOF
  3522.  
  3523. fi
  3524.  
  3525. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  3526. echo "configure:3528: checking for uid_t in sys/types.h" >&5
  3527. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  3528.   echo $ac_n "(cached) $ac_c" 1>&6
  3529. else
  3530.   cat > conftest.$ac_ext <<EOF
  3531. #line 3533 "configure"
  3532. #include "confdefs.h"
  3533. #include <sys/types.h>
  3534. EOF
  3535. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3536.   egrep "uid_t" >/dev/null 2>&1; then
  3537.   rm -rf conftest*
  3538.   ac_cv_type_uid_t=yes
  3539. else
  3540.   rm -rf conftest*
  3541.   ac_cv_type_uid_t=no
  3542. fi
  3543. rm -f conftest*
  3544.  
  3545. fi
  3546.  
  3547. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  3548. if test $ac_cv_type_uid_t = no; then
  3549.   cat >> confdefs.h <<\EOF
  3550. #define uid_t int
  3551. EOF
  3552.  
  3553.   cat >> confdefs.h <<\EOF
  3554. #define gid_t int
  3555. EOF
  3556.  
  3557. fi
  3558.  
  3559. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  3560. echo "configure:3562: checking for pid_t" >&5
  3561. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  3562.   echo $ac_n "(cached) $ac_c" 1>&6
  3563. else
  3564.   cat > conftest.$ac_ext <<EOF
  3565. #line 3567 "configure"
  3566. #include "confdefs.h"
  3567. #include <sys/types.h>
  3568. #if STDC_HEADERS
  3569. #include <stdlib.h>
  3570. #include <stddef.h>
  3571. #endif
  3572. EOF
  3573. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3574.   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3575.   rm -rf conftest*
  3576.   ac_cv_type_pid_t=yes
  3577. else
  3578.   rm -rf conftest*
  3579.   ac_cv_type_pid_t=no
  3580. fi
  3581. rm -f conftest*
  3582.  
  3583. fi
  3584. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  3585. if test $ac_cv_type_pid_t = no; then
  3586.   cat >> confdefs.h <<\EOF
  3587. #define pid_t int
  3588. EOF
  3589.  
  3590. fi
  3591.  
  3592.  
  3593.  
  3594. echo $ac_n "checking for working const""... $ac_c" 1>&6
  3595. echo "configure:3597: checking for working const" >&5
  3596. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  3597.   echo $ac_n "(cached) $ac_c" 1>&6
  3598. else
  3599.   cat > conftest.$ac_ext <<EOF
  3600. #line 3602 "configure"
  3601. #include "confdefs.h"
  3602.  
  3603. int main() {
  3604.  
  3605. /* Ultrix mips cc rejects this.  */
  3606. typedef int charset[2]; const charset x;
  3607. /* SunOS 4.1.1 cc rejects this.  */
  3608. char const *const *ccp;
  3609. char **p;
  3610. /* NEC SVR4.0.2 mips cc rejects this.  */
  3611. struct point {int x, y;};
  3612. static struct point const zero = {0,0};
  3613. /* AIX XL C 1.02.0.0 rejects this.
  3614.    It does not let you subtract one const X* pointer from another in an arm
  3615.    of an if-expression whose if-part is not a constant expression */
  3616. const char *g = "string";
  3617. ccp = &g + (g ? g-g : 0);
  3618. /* HPUX 7.0 cc rejects these. */
  3619. ++ccp;
  3620. p = (char**) ccp;
  3621. ccp = (char const *const *) p;
  3622. { /* SCO 3.2v4 cc rejects this.  */
  3623.   char *t;
  3624.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  3625.  
  3626.   *t++ = 0;
  3627. }
  3628. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  3629.   int x[] = {25, 17};
  3630.   const int *foo = &x[0];
  3631.   ++foo;
  3632. }
  3633. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3634.   typedef const int *iptr;
  3635.   iptr p = 0;
  3636.   ++p;
  3637. }
  3638. { /* AIX XL C 1.02.0.0 rejects this saying
  3639.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3640.   struct s { int j; const int *ap[3]; };
  3641.   struct s *b; b->j = 5;
  3642. }
  3643. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3644.   const int foo = 10;
  3645. }
  3646.  
  3647. ; return 0; }
  3648. EOF
  3649. if { (eval echo configure:3651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3650.   rm -rf conftest*
  3651.   ac_cv_c_const=yes
  3652. else
  3653.   echo "configure: failed program was:" >&5
  3654.   cat conftest.$ac_ext >&5
  3655.   rm -rf conftest*
  3656.   ac_cv_c_const=no
  3657. fi
  3658. rm -f conftest*
  3659. fi
  3660.  
  3661. echo "$ac_t""$ac_cv_c_const" 1>&6
  3662. if test $ac_cv_c_const = no; then
  3663.   cat >> confdefs.h <<\EOF
  3664. #define const 
  3665. EOF
  3666.  
  3667. fi
  3668.  
  3669.  
  3670.  
  3671. for ac_func in getcwd getnetgrent waitpid seteuid setegid setreuid setregid
  3672. do
  3673. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3674. echo "configure:3676: checking for $ac_func" >&5
  3675. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3676.   echo $ac_n "(cached) $ac_c" 1>&6
  3677. else
  3678.   cat > conftest.$ac_ext <<EOF
  3679. #line 3681 "configure"
  3680. #include "confdefs.h"
  3681. /* System header to define __stub macros and hopefully few prototypes,
  3682.     which can conflict with char $ac_func(); below.  */
  3683. #include <assert.h>
  3684. /* Override any gcc2 internal prototype to avoid an error.  */
  3685. /* We use char because int might match the return type of a gcc2
  3686.     builtin and then its argument prototype would still apply.  */
  3687. char $ac_func();
  3688.  
  3689. int main() {
  3690.  
  3691. /* The GNU C library defines this for functions which it implements
  3692.     to always fail with ENOSYS.  Some functions are actually named
  3693.     something starting with __ and the normal name is an alias.  */
  3694. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3695. choke me
  3696. #else
  3697. $ac_func();
  3698. #endif
  3699.  
  3700. ; return 0; }
  3701. EOF
  3702. if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3703.   rm -rf conftest*
  3704.   eval "ac_cv_func_$ac_func=yes"
  3705. else
  3706.   echo "configure: failed program was:" >&5
  3707.   cat conftest.$ac_ext >&5
  3708.   rm -rf conftest*
  3709.   eval "ac_cv_func_$ac_func=no"
  3710. fi
  3711. rm -f conftest*
  3712. fi
  3713.  
  3714. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3715.   echo "$ac_t""yes" 1>&6
  3716.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3717.   cat >> confdefs.h <<EOF
  3718. #define $ac_tr_func 1
  3719. EOF
  3720.  
  3721. else
  3722.   echo "$ac_t""no" 1>&6
  3723. fi
  3724. done
  3725.  
  3726. for ac_func in uname gethostname realpath regcomp chflags
  3727. do
  3728. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3729. echo "configure:3731: checking for $ac_func" >&5
  3730. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3731.   echo $ac_n "(cached) $ac_c" 1>&6
  3732. else
  3733.   cat > conftest.$ac_ext <<EOF
  3734. #line 3736 "configure"
  3735. #include "confdefs.h"
  3736. /* System header to define __stub macros and hopefully few prototypes,
  3737.     which can conflict with char $ac_func(); below.  */
  3738. #include <assert.h>
  3739. /* Override any gcc2 internal prototype to avoid an error.  */
  3740. /* We use char because int might match the return type of a gcc2
  3741.     builtin and then its argument prototype would still apply.  */
  3742. char $ac_func();
  3743.  
  3744. int main() {
  3745.  
  3746. /* The GNU C library defines this for functions which it implements
  3747.     to always fail with ENOSYS.  Some functions are actually named
  3748.     something starting with __ and the normal name is an alias.  */
  3749. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3750. choke me
  3751. #else
  3752. $ac_func();
  3753. #endif
  3754.  
  3755. ; return 0; }
  3756. EOF
  3757. if { (eval echo configure:3759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3758.   rm -rf conftest*
  3759.   eval "ac_cv_func_$ac_func=yes"
  3760. else
  3761.   echo "configure: failed program was:" >&5
  3762.   cat conftest.$ac_ext >&5
  3763.   rm -rf conftest*
  3764.   eval "ac_cv_func_$ac_func=no"
  3765. fi
  3766. rm -f conftest*
  3767. fi
  3768.  
  3769. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3770.   echo "$ac_t""yes" 1>&6
  3771.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3772.   cat >> confdefs.h <<EOF
  3773. #define $ac_tr_func 1
  3774. EOF
  3775.  
  3776. else
  3777.   echo "$ac_t""no" 1>&6
  3778. fi
  3779. done
  3780.  
  3781. for ac_func in strstr putenv shmget
  3782. do
  3783. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3784. echo "configure:3786: checking for $ac_func" >&5
  3785. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3786.   echo $ac_n "(cached) $ac_c" 1>&6
  3787. else
  3788.   cat > conftest.$ac_ext <<EOF
  3789. #line 3791 "configure"
  3790. #include "confdefs.h"
  3791. /* System header to define __stub macros and hopefully few prototypes,
  3792.     which can conflict with char $ac_func(); below.  */
  3793. #include <assert.h>
  3794. /* Override any gcc2 internal prototype to avoid an error.  */
  3795. /* We use char because int might match the return type of a gcc2
  3796.     builtin and then its argument prototype would still apply.  */
  3797. char $ac_func();
  3798.  
  3799. int main() {
  3800.  
  3801. /* The GNU C library defines this for functions which it implements
  3802.     to always fail with ENOSYS.  Some functions are actually named
  3803.     something starting with __ and the normal name is an alias.  */
  3804. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3805. choke me
  3806. #else
  3807. $ac_func();
  3808. #endif
  3809.  
  3810. ; return 0; }
  3811. EOF
  3812. if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3813.   rm -rf conftest*
  3814.   eval "ac_cv_func_$ac_func=yes"
  3815. else
  3816.   echo "configure: failed program was:" >&5
  3817.   cat conftest.$ac_ext >&5
  3818.   rm -rf conftest*
  3819.   eval "ac_cv_func_$ac_func=no"
  3820. fi
  3821. rm -f conftest*
  3822. fi
  3823.  
  3824. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3825.   echo "$ac_t""yes" 1>&6
  3826.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3827.   cat >> confdefs.h <<EOF
  3828. #define $ac_tr_func 1
  3829. EOF
  3830.  
  3831. else
  3832.   echo "$ac_t""no" 1>&6
  3833. fi
  3834. done
  3835.  
  3836. for ac_func in bcopy mkfifo statfs statvfs
  3837. do
  3838. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3839. echo "configure:3841: checking for $ac_func" >&5
  3840. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3841.   echo $ac_n "(cached) $ac_c" 1>&6
  3842. else
  3843.   cat > conftest.$ac_ext <<EOF
  3844. #line 3846 "configure"
  3845. #include "confdefs.h"
  3846. /* System header to define __stub macros and hopefully few prototypes,
  3847.     which can conflict with char $ac_func(); below.  */
  3848. #include <assert.h>
  3849. /* Override any gcc2 internal prototype to avoid an error.  */
  3850. /* We use char because int might match the return type of a gcc2
  3851.     builtin and then its argument prototype would still apply.  */
  3852. char $ac_func();
  3853.  
  3854. int main() {
  3855.  
  3856. /* The GNU C library defines this for functions which it implements
  3857.     to always fail with ENOSYS.  Some functions are actually named
  3858.     something starting with __ and the normal name is an alias.  */
  3859. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3860. choke me
  3861. #else
  3862. $ac_func();
  3863. #endif
  3864.  
  3865. ; return 0; }
  3866. EOF
  3867. if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3868.   rm -rf conftest*
  3869.   eval "ac_cv_func_$ac_func=yes"
  3870. else
  3871.   echo "configure: failed program was:" >&5
  3872.   cat conftest.$ac_ext >&5
  3873.   rm -rf conftest*
  3874.   eval "ac_cv_func_$ac_func=no"
  3875. fi
  3876. rm -f conftest*
  3877. fi
  3878.  
  3879. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3880.   echo "$ac_t""yes" 1>&6
  3881.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3882.   cat >> confdefs.h <<EOF
  3883. #define $ac_tr_func 1
  3884. EOF
  3885.  
  3886. else
  3887.   echo "$ac_t""no" 1>&6
  3888. fi
  3889. done
  3890.  
  3891. for ac_func in sysinfo setsid strdup strrchr strerror
  3892. do
  3893. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3894. echo "configure:3896: checking for $ac_func" >&5
  3895. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3896.   echo $ac_n "(cached) $ac_c" 1>&6
  3897. else
  3898.   cat > conftest.$ac_ext <<EOF
  3899. #line 3901 "configure"
  3900. #include "confdefs.h"
  3901. /* System header to define __stub macros and hopefully few prototypes,
  3902.     which can conflict with char $ac_func(); below.  */
  3903. #include <assert.h>
  3904. /* Override any gcc2 internal prototype to avoid an error.  */
  3905. /* We use char because int might match the return type of a gcc2
  3906.     builtin and then its argument prototype would still apply.  */
  3907. char $ac_func();
  3908.  
  3909. int main() {
  3910.  
  3911. /* The GNU C library defines this for functions which it implements
  3912.     to always fail with ENOSYS.  Some functions are actually named
  3913.     something starting with __ and the normal name is an alias.  */
  3914. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3915. choke me
  3916. #else
  3917. $ac_func();
  3918. #endif
  3919.  
  3920. ; return 0; }
  3921. EOF
  3922. if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3923.   rm -rf conftest*
  3924.   eval "ac_cv_func_$ac_func=yes"
  3925. else
  3926.   echo "configure: failed program was:" >&5
  3927.   cat conftest.$ac_ext >&5
  3928.   rm -rf conftest*
  3929.   eval "ac_cv_func_$ac_func=no"
  3930. fi
  3931. rm -f conftest*
  3932. fi
  3933.  
  3934. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3935.   echo "$ac_t""yes" 1>&6
  3936.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3937.   cat >> confdefs.h <<EOF
  3938. #define $ac_tr_func 1
  3939. EOF
  3940.  
  3941. else
  3942.   echo "$ac_t""no" 1>&6
  3943. fi
  3944. done
  3945.  
  3946.  
  3947.  
  3948. rtry=none
  3949. echo $ac_n "checking for either struct rtentry or struct ortentry""... $ac_c" 1>&6
  3950. echo "configure:3952: checking for either struct rtentry or struct ortentry" >&5
  3951. cat > conftest.$ac_ext <<EOF
  3952. #line 3954 "configure"
  3953. #include "confdefs.h"
  3954. #include <net/route.h>
  3955. EOF
  3956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3957.   egrep "rtentry" >/dev/null 2>&1; then
  3958.   rm -rf conftest*
  3959.   cat >> confdefs.h <<\EOF
  3960. #define HAVE_RTENTRY 1
  3961. EOF
  3962.  rtry=rtentry
  3963. fi
  3964. rm -f conftest*
  3965.  
  3966. cat > conftest.$ac_ext <<EOF
  3967. #line 3969 "configure"
  3968. #include "confdefs.h"
  3969. #include <net/route.h>
  3970. EOF
  3971. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3972.   egrep "ortentry" >/dev/null 2>&1; then
  3973.   rm -rf conftest*
  3974.   cat >> confdefs.h <<\EOF
  3975. #define HAVE_ORTENTRY 1
  3976. EOF
  3977.  rtry=ortentry
  3978. fi
  3979. rm -f conftest*
  3980.  
  3981. echo "$ac_t""$rtry" 1>&6
  3982.  
  3983.  
  3984.  
  3985.  
  3986. echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
  3987. echo "configure:3989: checking for main in -lpthread" >&5
  3988. ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
  3989. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3990.   echo $ac_n "(cached) $ac_c" 1>&6
  3991. else
  3992.   ac_save_LIBS="$LIBS"
  3993. LIBS="-lpthread  $LIBS"
  3994. cat > conftest.$ac_ext <<EOF
  3995. #line 3997 "configure"
  3996. #include "confdefs.h"
  3997.  
  3998. int main() {
  3999. main()
  4000. ; return 0; }
  4001. EOF
  4002. if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4003.   rm -rf conftest*
  4004.   eval "ac_cv_lib_$ac_lib_var=yes"
  4005. else
  4006.   echo "configure: failed program was:" >&5
  4007.   cat conftest.$ac_ext >&5
  4008.   rm -rf conftest*
  4009.   eval "ac_cv_lib_$ac_lib_var=no"
  4010. fi
  4011. rm -f conftest*
  4012. LIBS="$ac_save_LIBS"
  4013.  
  4014. fi
  4015. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4016.   echo "$ac_t""yes" 1>&6
  4017.     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4018.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4019.   cat >> confdefs.h <<EOF
  4020. #define $ac_tr_lib 1
  4021. EOF
  4022.  
  4023.   LIBS="-lpthread $LIBS"
  4024.  
  4025. else
  4026.   echo "$ac_t""no" 1>&6
  4027. fi
  4028.          for ac_hdr in pthread.h
  4029. do
  4030. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4031. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4032. echo "configure:4034: checking for $ac_hdr" >&5
  4033. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4034.   echo $ac_n "(cached) $ac_c" 1>&6
  4035. else
  4036.   cat > conftest.$ac_ext <<EOF
  4037. #line 4039 "configure"
  4038. #include "confdefs.h"
  4039. #include <$ac_hdr>
  4040. EOF
  4041. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4042. { (eval echo configure:4044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4043. ac_err=`grep -v '^ *+' conftest.out`
  4044. if test -z "$ac_err"; then
  4045.   rm -rf conftest*
  4046.   eval "ac_cv_header_$ac_safe=yes"
  4047. else
  4048.   echo "$ac_err" >&5
  4049.   echo "configure: failed program was:" >&5
  4050.   cat conftest.$ac_ext >&5
  4051.   rm -rf conftest*
  4052.   eval "ac_cv_header_$ac_safe=no"
  4053. fi
  4054. rm -f conftest*
  4055. fi
  4056. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4057.   echo "$ac_t""yes" 1>&6
  4058.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4059.   cat >> confdefs.h <<EOF
  4060. #define $ac_tr_hdr 1
  4061. EOF
  4062.  
  4063. else
  4064.   echo "$ac_t""no" 1>&6
  4065. fi
  4066. done
  4067.  
  4068. for ac_hdr in sched.h
  4069. do
  4070. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4071. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4072. echo "configure:4074: checking for $ac_hdr" >&5
  4073. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4074.   echo $ac_n "(cached) $ac_c" 1>&6
  4075. else
  4076.   cat > conftest.$ac_ext <<EOF
  4077. #line 4079 "configure"
  4078. #include "confdefs.h"
  4079. #include <$ac_hdr>
  4080. EOF
  4081. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4082. { (eval echo configure:4084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4083. ac_err=`grep -v '^ *+' conftest.out`
  4084. if test -z "$ac_err"; then
  4085.   rm -rf conftest*
  4086.   eval "ac_cv_header_$ac_safe=yes"
  4087. else
  4088.   echo "$ac_err" >&5
  4089.   echo "configure: failed program was:" >&5
  4090.   cat conftest.$ac_ext >&5
  4091.   rm -rf conftest*
  4092.   eval "ac_cv_header_$ac_safe=no"
  4093. fi
  4094. rm -f conftest*
  4095. fi
  4096. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4097.   echo "$ac_t""yes" 1>&6
  4098.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4099.   cat >> confdefs.h <<EOF
  4100. #define $ac_tr_hdr 1
  4101. EOF
  4102.  
  4103. else
  4104.   echo "$ac_t""no" 1>&6
  4105. fi
  4106. done
  4107.  
  4108.  
  4109. echo $ac_n "checking for lchown""... $ac_c" 1>&6
  4110. echo "configure:4112: checking for lchown" >&5
  4111. if eval "test \"`echo '$''{'ac_cv_func_lchown'+set}'`\" = set"; then
  4112.   echo $ac_n "(cached) $ac_c" 1>&6
  4113. else
  4114.   cat > conftest.$ac_ext <<EOF
  4115. #line 4117 "configure"
  4116. #include "confdefs.h"
  4117. /* System header to define __stub macros and hopefully few prototypes,
  4118.     which can conflict with char lchown(); below.  */
  4119. #include <assert.h>
  4120. /* Override any gcc2 internal prototype to avoid an error.  */
  4121. /* We use char because int might match the return type of a gcc2
  4122.     builtin and then its argument prototype would still apply.  */
  4123. char lchown();
  4124.  
  4125. int main() {
  4126.  
  4127. /* The GNU C library defines this for functions which it implements
  4128.     to always fail with ENOSYS.  Some functions are actually named
  4129.     something starting with __ and the normal name is an alias.  */
  4130. #if defined (__stub_lchown) || defined (__stub___lchown)
  4131. choke me
  4132. #else
  4133. lchown();
  4134. #endif
  4135.  
  4136. ; return 0; }
  4137. EOF
  4138. if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4139.   rm -rf conftest*
  4140.   eval "ac_cv_func_lchown=yes"
  4141. else
  4142.   echo "configure: failed program was:" >&5
  4143.   cat conftest.$ac_ext >&5
  4144.   rm -rf conftest*
  4145.   eval "ac_cv_func_lchown=no"
  4146. fi
  4147. rm -f conftest*
  4148. fi
  4149.  
  4150. if eval "test \"`echo '$ac_cv_func_'lchown`\" = yes"; then
  4151.   echo "$ac_t""yes" 1>&6
  4152.   cat >> confdefs.h <<\EOF
  4153. #define HAVE_LCHOWN 1
  4154. EOF
  4155.  
  4156. else
  4157.   echo "$ac_t""no" 1>&6
  4158. fi
  4159.  
  4160. echo $ac_n "checking for pthread_attr_setstacksize""... $ac_c" 1>&6
  4161. echo "configure:4163: checking for pthread_attr_setstacksize" >&5
  4162. if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setstacksize'+set}'`\" = set"; then
  4163.   echo $ac_n "(cached) $ac_c" 1>&6
  4164. else
  4165.   cat > conftest.$ac_ext <<EOF
  4166. #line 4168 "configure"
  4167. #include "confdefs.h"
  4168. /* System header to define __stub macros and hopefully few prototypes,
  4169.     which can conflict with char pthread_attr_setstacksize(); below.  */
  4170. #include <assert.h>
  4171. /* Override any gcc2 internal prototype to avoid an error.  */
  4172. /* We use char because int might match the return type of a gcc2
  4173.     builtin and then its argument prototype would still apply.  */
  4174. char pthread_attr_setstacksize();
  4175.  
  4176. int main() {
  4177.  
  4178. /* The GNU C library defines this for functions which it implements
  4179.     to always fail with ENOSYS.  Some functions are actually named
  4180.     something starting with __ and the normal name is an alias.  */
  4181. #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
  4182. choke me
  4183. #else
  4184. pthread_attr_setstacksize();
  4185. #endif
  4186.  
  4187. ; return 0; }
  4188. EOF
  4189. if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4190.   rm -rf conftest*
  4191.   eval "ac_cv_func_pthread_attr_setstacksize=yes"
  4192. else
  4193.   echo "configure: failed program was:" >&5
  4194.   cat conftest.$ac_ext >&5
  4195.   rm -rf conftest*
  4196.   eval "ac_cv_func_pthread_attr_setstacksize=no"
  4197. fi
  4198. rm -f conftest*
  4199. fi
  4200.  
  4201. if eval "test \"`echo '$ac_cv_func_'pthread_attr_setstacksize`\" = yes"; then
  4202.   echo "$ac_t""yes" 1>&6
  4203.   cat >> confdefs.h <<\EOF
  4204. #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
  4205. EOF
  4206.  
  4207. else
  4208.   echo "$ac_t""no" 1>&6
  4209. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  4210. echo "configure:4212: checking for pthread_create in -lpthread" >&5
  4211. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  4212. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4213.   echo $ac_n "(cached) $ac_c" 1>&6
  4214. else
  4215.   ac_save_LIBS="$LIBS"
  4216. LIBS="-lpthread  $LIBS"
  4217. cat > conftest.$ac_ext <<EOF
  4218. #line 4220 "configure"
  4219. #include "confdefs.h"
  4220. /* Override any gcc2 internal prototype to avoid an error.  */
  4221. /* We use char because int might match the return type of a gcc2
  4222.     builtin and then its argument prototype would still apply.  */
  4223. char pthread_create();
  4224.  
  4225. int main() {
  4226. pthread_create()
  4227. ; return 0; }
  4228. EOF
  4229. if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4230.   rm -rf conftest*
  4231.   eval "ac_cv_lib_$ac_lib_var=yes"
  4232. else
  4233.   echo "configure: failed program was:" >&5
  4234.   cat conftest.$ac_ext >&5
  4235.   rm -rf conftest*
  4236.   eval "ac_cv_lib_$ac_lib_var=no"
  4237. fi
  4238. rm -f conftest*
  4239. LIBS="$ac_save_LIBS"
  4240.  
  4241. fi
  4242. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4243.   echo "$ac_t""yes" 1>&6
  4244.     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
  4245.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4246.   cat >> confdefs.h <<EOF
  4247. #define $ac_tr_lib 1
  4248. EOF
  4249.  
  4250.   LIBS="-lpthread $LIBS"
  4251.  
  4252. else
  4253.   echo "$ac_t""no" 1>&6
  4254. fi
  4255.  
  4256. fi
  4257.  
  4258. echo $ac_n "checking for pthread_sigmask""... $ac_c" 1>&6
  4259. echo "configure:4261: checking for pthread_sigmask" >&5
  4260. if eval "test \"`echo '$''{'ac_cv_func_pthread_sigmask'+set}'`\" = set"; then
  4261.   echo $ac_n "(cached) $ac_c" 1>&6
  4262. else
  4263.   cat > conftest.$ac_ext <<EOF
  4264. #line 4266 "configure"
  4265. #include "confdefs.h"
  4266. /* System header to define __stub macros and hopefully few prototypes,
  4267.     which can conflict with char pthread_sigmask(); below.  */
  4268. #include <assert.h>
  4269. /* Override any gcc2 internal prototype to avoid an error.  */
  4270. /* We use char because int might match the return type of a gcc2
  4271.     builtin and then its argument prototype would still apply.  */
  4272. char pthread_sigmask();
  4273.  
  4274. int main() {
  4275.  
  4276. /* The GNU C library defines this for functions which it implements
  4277.     to always fail with ENOSYS.  Some functions are actually named
  4278.     something starting with __ and the normal name is an alias.  */
  4279. #if defined (__stub_pthread_sigmask) || defined (__stub___pthread_sigmask)
  4280. choke me
  4281. #else
  4282. pthread_sigmask();
  4283. #endif
  4284.  
  4285. ; return 0; }
  4286. EOF
  4287. if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4288.   rm -rf conftest*
  4289.   eval "ac_cv_func_pthread_sigmask=yes"
  4290. else
  4291.   echo "configure: failed program was:" >&5
  4292.   cat conftest.$ac_ext >&5
  4293.   rm -rf conftest*
  4294.   eval "ac_cv_func_pthread_sigmask=no"
  4295. fi
  4296. rm -f conftest*
  4297. fi
  4298.  
  4299. if eval "test \"`echo '$ac_cv_func_'pthread_sigmask`\" = yes"; then
  4300.   echo "$ac_t""yes" 1>&6
  4301.   cat >> confdefs.h <<\EOF
  4302. #define HAVE_PTHREAD_SIGMASK 1
  4303. EOF
  4304.  
  4305. else
  4306.   echo "$ac_t""no" 1>&6
  4307. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  4308. echo "configure:4310: checking for pthread_create in -lpthread" >&5
  4309. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  4310. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4311.   echo $ac_n "(cached) $ac_c" 1>&6
  4312. else
  4313.   ac_save_LIBS="$LIBS"
  4314. LIBS="-lpthread  $LIBS"
  4315. cat > conftest.$ac_ext <<EOF
  4316. #line 4318 "configure"
  4317. #include "confdefs.h"
  4318. /* Override any gcc2 internal prototype to avoid an error.  */
  4319. /* We use char because int might match the return type of a gcc2
  4320.     builtin and then its argument prototype would still apply.  */
  4321. char pthread_create();
  4322.  
  4323. int main() {
  4324. pthread_create()
  4325. ; return 0; }
  4326. EOF
  4327. if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4328.   rm -rf conftest*
  4329.   eval "ac_cv_lib_$ac_lib_var=yes"
  4330. else
  4331.   echo "configure: failed program was:" >&5
  4332.   cat conftest.$ac_ext >&5
  4333.   rm -rf conftest*
  4334.   eval "ac_cv_lib_$ac_lib_var=no"
  4335. fi
  4336. rm -f conftest*
  4337. LIBS="$ac_save_LIBS"
  4338.  
  4339. fi
  4340. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4341.   echo "$ac_t""yes" 1>&6
  4342.     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
  4343.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4344.   cat >> confdefs.h <<EOF
  4345. #define $ac_tr_lib 1
  4346. EOF
  4347.  
  4348.   LIBS="-lpthread $LIBS"
  4349.  
  4350. else
  4351.   echo "$ac_t""no" 1>&6
  4352. fi
  4353.  
  4354. fi
  4355.  
  4356.  
  4357. # Check whether --enable-DCE or --disable-DCE was given.
  4358. if test "${enable_DCE+set}" = set; then
  4359.   enableval="$enable_DCE"
  4360.   
  4361.   case "$enableval" in
  4362.     no) 
  4363.         ;;
  4364.     *)
  4365.     echo $ac_n "checking for main in -lthread""... $ac_c" 1>&6
  4366. echo "configure:4368: checking for main in -lthread" >&5
  4367. ac_lib_var=`echo thread'_'main | sed 'y%./+-%__p_%'`
  4368. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4369.   echo $ac_n "(cached) $ac_c" 1>&6
  4370. else
  4371.   ac_save_LIBS="$LIBS"
  4372. LIBS="-lthread  $LIBS"
  4373. cat > conftest.$ac_ext <<EOF
  4374. #line 4376 "configure"
  4375. #include "confdefs.h"
  4376.  
  4377. int main() {
  4378. main()
  4379. ; return 0; }
  4380. EOF
  4381. if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4382.   rm -rf conftest*
  4383.   eval "ac_cv_lib_$ac_lib_var=yes"
  4384. else
  4385.   echo "configure: failed program was:" >&5
  4386.   cat conftest.$ac_ext >&5
  4387.   rm -rf conftest*
  4388.   eval "ac_cv_lib_$ac_lib_var=no"
  4389. fi
  4390. rm -f conftest*
  4391. LIBS="$ac_save_LIBS"
  4392.  
  4393. fi
  4394. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4395.   echo "$ac_t""yes" 1>&6
  4396.     ac_tr_lib=HAVE_LIB`echo thread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4397.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4398.   cat >> confdefs.h <<EOF
  4399. #define $ac_tr_lib 1
  4400. EOF
  4401.  
  4402.   LIBS="-lthread $LIBS"
  4403.  
  4404. else
  4405.   echo "$ac_t""no" 1>&6
  4406. fi
  4407.  
  4408.     echo $ac_n "checking for main in -ldce""... $ac_c" 1>&6
  4409. echo "configure:4411: checking for main in -ldce" >&5
  4410. ac_lib_var=`echo dce'_'main | sed 'y%./+-%__p_%'`
  4411. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4412.   echo $ac_n "(cached) $ac_c" 1>&6
  4413. else
  4414.   ac_save_LIBS="$LIBS"
  4415. LIBS="-ldce  $LIBS"
  4416. cat > conftest.$ac_ext <<EOF
  4417. #line 4419 "configure"
  4418. #include "confdefs.h"
  4419.  
  4420. int main() {
  4421. main()
  4422. ; return 0; }
  4423. EOF
  4424. if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4425.   rm -rf conftest*
  4426.   eval "ac_cv_lib_$ac_lib_var=yes"
  4427. else
  4428.   echo "configure: failed program was:" >&5
  4429.   cat conftest.$ac_ext >&5
  4430.   rm -rf conftest*
  4431.   eval "ac_cv_lib_$ac_lib_var=no"
  4432. fi
  4433. rm -f conftest*
  4434. LIBS="$ac_save_LIBS"
  4435.  
  4436. fi
  4437. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4438.   echo "$ac_t""yes" 1>&6
  4439.     ac_tr_lib=HAVE_LIB`echo dce | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4440.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4441.   cat >> confdefs.h <<EOF
  4442. #define $ac_tr_lib 1
  4443. EOF
  4444.  
  4445.   LIBS="-ldce $LIBS"
  4446.  
  4447. else
  4448.   echo "$ac_t""no" 1>&6
  4449. fi
  4450.                 for ac_hdr in dce/daclif.h
  4451. do
  4452. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4453. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4454. echo "configure:4456: checking for $ac_hdr" >&5
  4455. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4456.   echo $ac_n "(cached) $ac_c" 1>&6
  4457. else
  4458.   cat > conftest.$ac_ext <<EOF
  4459. #line 4461 "configure"
  4460. #include "confdefs.h"
  4461. #include <$ac_hdr>
  4462. EOF
  4463. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4464. { (eval echo configure:4466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4465. ac_err=`grep -v '^ *+' conftest.out`
  4466. if test -z "$ac_err"; then
  4467.   rm -rf conftest*
  4468.   eval "ac_cv_header_$ac_safe=yes"
  4469. else
  4470.   echo "$ac_err" >&5
  4471.   echo "configure: failed program was:" >&5
  4472.   cat conftest.$ac_ext >&5
  4473.   rm -rf conftest*
  4474.   eval "ac_cv_header_$ac_safe=no"
  4475. fi
  4476. rm -f conftest*
  4477. fi
  4478. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4479.   echo "$ac_t""yes" 1>&6
  4480.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4481.   cat >> confdefs.h <<EOF
  4482. #define $ac_tr_hdr 1
  4483. EOF
  4484.  
  4485. else
  4486.   echo "$ac_t""no" 1>&6
  4487. fi
  4488. done
  4489.  
  4490.     ;;
  4491.   esac
  4492.  
  4493. fi
  4494.  
  4495.  
  4496.  
  4497.  
  4498. if test "$srcdir" != "."; then
  4499.   CPPFLAGS="$CPPFLAGS -I`pwd`/src"
  4500. fi
  4501.  
  4502. case "$target_os" in
  4503.  
  4504.    sunos3*)
  4505.     cat >> confdefs.h <<\EOF
  4506. #define SUN3 1
  4507. EOF
  4508.  
  4509.         ;;
  4510.    sunos4*)
  4511.     cat >> confdefs.h <<\EOF
  4512. #define SUN4 1
  4513. EOF
  4514.  
  4515.         ;;
  4516.    solaris2.4*)
  4517.     cat >> confdefs.h <<\EOF
  4518. #define SOLARIS 1
  4519. EOF
  4520.  
  4521.         cat >> confdefs.h <<\EOF
  4522. #define HAVE_SYS_ACL_H 
  4523. EOF
  4524.  
  4525.         CPPFLAGS="-w $CPPFLAGS"
  4526.         LIBS="$LIBS -lelf"
  4527.         ;;
  4528.    solaris2.5*)
  4529.     cat >> confdefs.h <<\EOF
  4530. #define SOLARIS 1
  4531. EOF
  4532.  
  4533.         cat >> confdefs.h <<\EOF
  4534. #define _POSIX_C_SOURCE 1
  4535. EOF
  4536.  
  4537.         cat >> confdefs.h <<\EOF
  4538. #define __EXTENSIONS__ 1
  4539. EOF
  4540.  
  4541.         LIBS="$LIBS -lelf -lsec"
  4542.         ;;
  4543.    solaris2*)
  4544.     cat >> confdefs.h <<\EOF
  4545. #define SOLARIS 1
  4546. EOF
  4547.  
  4548.         cat >> confdefs.h <<\EOF
  4549. #define __BIT_TYPES_DEFINED__ 1
  4550. EOF
  4551.  # avoid conflict with db.h
  4552.         cat >> confdefs.h <<\EOF
  4553. #define _POSIX_C_SOURCE 1
  4554. EOF
  4555.  
  4556.         cat >> confdefs.h <<\EOF
  4557. #define __EXTENSIONS__ 1
  4558. EOF
  4559.  
  4560.         LIBS="$LIBS -lelf -lsec"
  4561.         ;;
  4562.    ultrix*)
  4563.     cat >> confdefs.h <<\EOF
  4564. #define ULTRIX 1
  4565. EOF
  4566.  
  4567.         ;;
  4568.    hpux*|hp-ux*) 
  4569.     cat >> confdefs.h <<\EOF
  4570. #define HPuUX 1
  4571. EOF
  4572.  
  4573.  
  4574.         if test "$GCC" != "yes"; then
  4575.       cat >> confdefs.h <<\EOF
  4576. #define REGEX_MALLOC 1
  4577. EOF
  4578.  
  4579.         fi
  4580.         LIBS="$LIBS -lc -lPW"
  4581.         ;;
  4582.    aix*)
  4583.     cat >> confdefs.h <<\EOF
  4584. #define AIX 1
  4585. EOF
  4586.  
  4587.         ;;
  4588.    osf*)
  4589.     cat >> confdefs.h <<\EOF
  4590. #define OSF 1
  4591. EOF
  4592.  
  4593.         ;;
  4594.    irix6*)
  4595.         cat >> confdefs.h <<\EOF
  4596. #define HAVE_ORTENTRY 1
  4597. EOF
  4598.  # Have to hack this for 6.* owing to bug
  4599.     cat >> confdefs.h <<\EOF
  4600. #define IRIX 1
  4601. EOF
  4602.  
  4603.         CFLAGS="$CFLAGS -w"
  4604.         ;;
  4605.    irix4*)
  4606.     cat >> confdefs.h <<\EOF
  4607. #define IRIX 1
  4608. EOF
  4609.  
  4610.         CFLAGS="$CFLAGS -w"
  4611.         LIBS="$LIBS -lsun"
  4612.         ;;
  4613.    irix*)
  4614.     cat >> confdefs.h <<\EOF
  4615. #define IRIX 1
  4616. EOF
  4617.  
  4618.         CFLAGS="$CFLAGS -w"
  4619.         ;;
  4620.    linux*)
  4621.     cat >> confdefs.h <<\EOF
  4622. #define LINUX 1
  4623. EOF
  4624.  
  4625.         ;;
  4626.    freebsd*)
  4627.     cat >> confdefs.h <<\EOF
  4628. #define FREEBSD 1
  4629. EOF
  4630.  
  4631.         ;;
  4632.    netbsd*)
  4633.     cat >> confdefs.h <<\EOF
  4634. #define NETBSD 1
  4635. EOF
  4636.  
  4637.         ;;
  4638.    newsos*)
  4639.     cat >> confdefs.h <<\EOF
  4640. #define NEWS_OS 1
  4641. EOF
  4642.  
  4643.         ;;
  4644.    bsd/os*)
  4645.     cat >> confdefs.h <<\EOF
  4646. #define BSDOS 1
  4647. EOF
  4648.  
  4649.         ;;
  4650.    bsd*)
  4651.     cat >> confdefs.h <<\EOF
  4652. #define BSD43 1
  4653. EOF
  4654.  
  4655.         ;;
  4656.    aos*)
  4657.     cat >> confdefs.h <<\EOF
  4658. #define AOS 1
  4659. EOF
  4660.  
  4661.         ;;
  4662.    nextstep*)
  4663.     cat >> confdefs.h <<\EOF
  4664. #define NEXTSTEP 1
  4665. EOF
  4666.  
  4667.         ;;
  4668.  
  4669.    unicos*)
  4670.     cat >> confdefs.h <<\EOF
  4671. #define CFCRAY 1
  4672. EOF
  4673.  
  4674.         ;;
  4675.  
  4676.    cray*)
  4677.     cat >> confdefs.h <<\EOF
  4678. #define CFCRAY 1
  4679. EOF
  4680.  
  4681.         ;;
  4682.  
  4683.    openbsd*)
  4684.     cat >> confdefs.h <<\EOF
  4685. #define OPENBSD 1
  4686. EOF
  4687.  
  4688.         ;;
  4689.  
  4690.    gnu*)
  4691.     cat >> confdefs.h <<\EOF
  4692. #define CFGNU 1
  4693. EOF
  4694.  
  4695.         ;;
  4696.  
  4697.    sysv4.2MP|unix_sv*)
  4698.     cat >> confdefs.h <<\EOF
  4699. #define UNIXWARE 1
  4700. EOF
  4701.  
  4702.         ;;
  4703.  
  4704.    cygwin32*)
  4705.         cat >> confdefs.h <<\EOF
  4706. #define NT 1
  4707. EOF
  4708.  
  4709.         ;;
  4710.  
  4711.    sco*)
  4712.         cat >> confdefs.h <<\EOF
  4713. #define SCO 1
  4714. EOF
  4715.  
  4716.         ;;
  4717.  
  4718.    *)
  4719.     { echo "configure: error: Unknown system type $target_os" 1>&2; exit 1; }
  4720.         ;;
  4721. esac
  4722.  
  4723. LIBS="$LIBS -L../pub -lcfpub"
  4724.  
  4725.  
  4726. # Check whether --with-LOCKDIR or --without-LOCKDIR was given.
  4727. if test "${with_LOCKDIR+set}" = set; then
  4728.   withval="$with_LOCKDIR"
  4729.   
  4730.         if test x$withval != x ; then
  4731.             LOCKDIR=$withval
  4732.         else
  4733.             if test -d /var/run ; then
  4734.                 LOCKDIR=/var/run/cfengine
  4735.             else
  4736.                 LOCKDIR=/etc/cfengine
  4737.             fi
  4738.         fi
  4739.         cat >> confdefs.h <<EOF
  4740. #define LOCKFILEDIR "${LOCKDIR}"
  4741. EOF
  4742.  
  4743.     
  4744. else
  4745.   
  4746.         if test -d /var/run ; then
  4747.             LOCKDIR=/var/run/cfengine
  4748.         else
  4749.             LOCKDIR=/etc/cfengine
  4750.         fi
  4751.         cat >> confdefs.h <<EOF
  4752. #define LOCKFILEDIR "${LOCKDIR}"
  4753. EOF
  4754.  
  4755.     
  4756.  
  4757. fi
  4758.  
  4759.  
  4760. # Check whether --with-LOGDIR or --without-LOGDIR was given.
  4761. if test "${with_LOGDIR+set}" = set; then
  4762.   withval="$with_LOGDIR"
  4763.   
  4764.         if test x$withval != x ; then
  4765.             LOGDIR=$withval
  4766.         else
  4767.             if test -d /var/run; then
  4768.                 LOGDIR=/var/run/cfengine
  4769.             else
  4770.                 LOGDIR=/etc/cfengine
  4771.             fi
  4772.         fi
  4773.         cat >> confdefs.h <<EOF
  4774. #define LOGFILEDIR "${LOGDIR}"
  4775. EOF
  4776.  
  4777.     
  4778. else
  4779.   
  4780.         if test -d /var/run; then
  4781.             LOGDIR=/var/run/cfengine
  4782.         else
  4783.             LOGDIR=/etc/cfengine
  4784.         fi
  4785.         cat >> confdefs.h <<EOF
  4786. #define LOGFILEDIR "${LOGDIR}"
  4787. EOF
  4788.  
  4789.     
  4790.  
  4791. fi
  4792.  
  4793.   
  4794.  
  4795. echo $ac_n "checking "8-bit support in Flex"""... $ac_c" 1>&6
  4796. echo "configure:4798: checking "8-bit support in Flex"" >&5
  4797.  
  4798. if test "$LEX" = "flex"; then
  4799.    EIGHTBIT="\200-\377"
  4800.    
  4801.    echo "$ac_t"""8-bit support added"" 1>&6
  4802. else
  4803.    echo "$ac_t"""no 8-bit support"" 1>&6
  4804. fi
  4805.   
  4806.  
  4807.  
  4808.   
  4809. # Extract the first word of "hostname", so it can be a program name with args.
  4810. set dummy hostname; ac_word=$2
  4811. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4812. echo "configure:4814: checking for $ac_word" >&5
  4813. if eval "test \"`echo '$''{'ac_cv_path_HOSTNAME'+set}'`\" = set"; then
  4814.   echo $ac_n "(cached) $ac_c" 1>&6
  4815. else
  4816.   case "$HOSTNAME" in
  4817.   /*)
  4818.   ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
  4819.   ;;
  4820.   *)
  4821.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4822.   for ac_dir in $PATH$ac_dummy; do
  4823.     test -z "$ac_dir" && ac_dir=.
  4824.     if test -f $ac_dir/$ac_word; then
  4825.       ac_cv_path_HOSTNAME="$ac_dir/$ac_word"
  4826.       break
  4827.     fi
  4828.   done
  4829.   IFS="$ac_save_ifs"
  4830.   test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME=""""
  4831.   ;;
  4832. esac
  4833. fi
  4834. HOSTNAME="$ac_cv_path_HOSTNAME"
  4835. if test -n "$HOSTNAME"; then
  4836.   echo "$ac_t""$HOSTNAME" 1>&6
  4837. else
  4838.   echo "$ac_t""no" 1>&6
  4839. fi
  4840.  
  4841.  
  4842.  
  4843. cat >> confdefs.h <<EOF
  4844. #define AUTOCONF_HOSTNAME "`$HOSTNAME`"
  4845. EOF
  4846.  
  4847. cat >> confdefs.h <<EOF
  4848. #define AUTOCONF_SYSNAME "$target_os"
  4849. EOF
  4850.  
  4851. cat >> confdefs.h <<EOF
  4852. #define CFVERSION "$cfversion"
  4853. EOF
  4854.  
  4855.  
  4856.  
  4857. trap '' 1 2 15
  4858. cat > confcache <<\EOF
  4859. # This file is a shell script that caches the results of configure
  4860. # tests run on this system so they can be shared between configure
  4861. # scripts and configure runs.  It is not useful on other systems.
  4862. # If it contains results you don't want to keep, you may remove or edit it.
  4863. #
  4864. # By default, configure uses ./config.cache as the cache file,
  4865. # creating it if it does not exist already.  You can give configure
  4866. # the --cache-file=FILE option to use a different cache file; that is
  4867. # what configure does when it calls configure scripts in
  4868. # subdirectories, so they share the cache.
  4869. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  4870. # config.status only pays attention to the cache file if you give it the
  4871. # --recheck option to rerun configure.
  4872. #
  4873. EOF
  4874. # The following way of writing the cache mishandles newlines in values,
  4875. # but we know of no workaround that is simple, portable, and efficient.
  4876. # So, don't put newlines in cache variables' values.
  4877. # Ultrix sh set writes to stderr and can't be redirected directly,
  4878. # and sets the high bit in the cache file unless we assign to the vars.
  4879. (set) 2>&1 |
  4880.   case `(ac_space=' '; set) 2>&1` in
  4881.   *ac_space=\ *)
  4882.     # `set' does not quote correctly, so add quotes (double-quote substitution
  4883.     # turns \\\\ into \\, and sed turns \\ into \).
  4884.     sed -n \
  4885.       -e "s/'/'\\\\''/g" \
  4886.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  4887.     ;;
  4888.   *)
  4889.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  4890.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  4891.     ;;
  4892.   esac >> confcache
  4893. if cmp -s $cache_file confcache; then
  4894.   :
  4895. else
  4896.   if test -w $cache_file; then
  4897.     echo "updating cache $cache_file"
  4898.     cat confcache > $cache_file
  4899.   else
  4900.     echo "not updating unwritable cache $cache_file"
  4901.   fi
  4902. fi
  4903. rm -f confcache
  4904.  
  4905. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  4906.  
  4907. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4908. # Let make expand exec_prefix.
  4909. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4910.  
  4911. # Any assignment to VPATH causes Sun make to only execute
  4912. # the first set of double-colon rules, so remove it if not needed.
  4913. # If there is a colon in the path, we need to keep it.
  4914. if test "x$srcdir" = x.; then
  4915.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  4916. fi
  4917.  
  4918. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  4919.  
  4920. DEFS=-DHAVE_CONFIG_H
  4921.  
  4922. # Without the "./", some shells look in PATH for config.status.
  4923. : ${CONFIG_STATUS=./config.status}
  4924.  
  4925. echo creating $CONFIG_STATUS
  4926. rm -f $CONFIG_STATUS
  4927. cat > $CONFIG_STATUS <<EOF
  4928. #! /bin/sh
  4929. # Generated automatically by configure.
  4930. # Run this file to recreate the current configuration.
  4931. # This directory was configured as follows,
  4932. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4933. #
  4934. # $0 $ac_configure_args
  4935. #
  4936. # Compiler output produced by configure, useful for debugging
  4937. # configure, is in ./config.log if it exists.
  4938.  
  4939. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  4940. for ac_option
  4941. do
  4942.   case "\$ac_option" in
  4943.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4944.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  4945.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  4946.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4947.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  4948.     exit 0 ;;
  4949.   -help | --help | --hel | --he | --h)
  4950.     echo "\$ac_cs_usage"; exit 0 ;;
  4951.   *) echo "\$ac_cs_usage"; exit 1 ;;
  4952.   esac
  4953. done
  4954.  
  4955. ac_given_srcdir=$srcdir
  4956. ac_given_INSTALL="$INSTALL"
  4957.  
  4958. trap 'rm -fr `echo "pub/Makefile doc/Makefile src/Makefile bin/Makefile contrib/Makefile \
  4959.     inputs/Makefile Makefile bin/cf-install doc/cfengine.8 \
  4960.     bin/cfmail bin/cfdaily bin/cfwrap contrib/cfdoc src/cflex.l src/conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  4961. EOF
  4962. cat >> $CONFIG_STATUS <<EOF
  4963.  
  4964. # Protect against being on the right side of a sed subst in config.status.
  4965. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  4966.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  4967. $ac_vpsub
  4968. $extrasub
  4969. s%@CFLAGS@%$CFLAGS%g
  4970. s%@CPPFLAGS@%$CPPFLAGS%g
  4971. s%@CXXFLAGS@%$CXXFLAGS%g
  4972. s%@DEFS@%$DEFS%g
  4973. s%@LDFLAGS@%$LDFLAGS%g
  4974. s%@LIBS@%$LIBS%g
  4975. s%@exec_prefix@%$exec_prefix%g
  4976. s%@prefix@%$prefix%g
  4977. s%@program_transform_name@%$program_transform_name%g
  4978. s%@bindir@%$bindir%g
  4979. s%@sbindir@%$sbindir%g
  4980. s%@libexecdir@%$libexecdir%g
  4981. s%@datadir@%$datadir%g
  4982. s%@sysconfdir@%$sysconfdir%g
  4983. s%@sharedstatedir@%$sharedstatedir%g
  4984. s%@localstatedir@%$localstatedir%g
  4985. s%@libdir@%$libdir%g
  4986. s%@includedir@%$includedir%g
  4987. s%@oldincludedir@%$oldincludedir%g
  4988. s%@infodir@%$infodir%g
  4989. s%@mandir@%$mandir%g
  4990. s%@host@%$host%g
  4991. s%@host_alias@%$host_alias%g
  4992. s%@host_cpu@%$host_cpu%g
  4993. s%@host_vendor@%$host_vendor%g
  4994. s%@host_os@%$host_os%g
  4995. s%@target@%$target%g
  4996. s%@target_alias@%$target_alias%g
  4997. s%@target_cpu@%$target_cpu%g
  4998. s%@target_vendor@%$target_vendor%g
  4999. s%@target_os@%$target_os%g
  5000. s%@build@%$build%g
  5001. s%@build_alias@%$build_alias%g
  5002. s%@build_cpu@%$build_cpu%g
  5003. s%@build_vendor@%$build_vendor%g
  5004. s%@build_os@%$build_os%g
  5005. s%@cfversion@%$cfversion%g
  5006. s%@SET_MAKE@%$SET_MAKE%g
  5007. s%@CC@%$CC%g
  5008. s%@LEX@%$LEX%g
  5009. s%@LEXLIB@%$LEXLIB%g
  5010. s%@YACC@%$YACC%g
  5011. s%@RANLIB@%$RANLIB%g
  5012. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5013. s%@INSTALL_DATA@%$INSTALL_DATA%g
  5014. s%@PERL@%$PERL%g
  5015. s%@TEX@%$TEX%g
  5016. s%@LATEX@%$LATEX%g
  5017. s%@TEXINDEX@%$TEXINDEX%g
  5018. s%@DVIPS@%$DVIPS%g
  5019. s%@TEXI2HTML@%$TEXI2HTML%g
  5020. s%@MAKEINFO@%$MAKEINFO%g
  5021. s%@DFILE1@%$DFILE1%g
  5022. s%@DFILE2@%$DFILE2%g
  5023. s%@PFILE1@%$PFILE1%g
  5024. s%@PFILE2@%$PFILE2%g
  5025. s%@HFILE1@%$HFILE1%g
  5026. s%@HFILE2@%$HFILE2%g
  5027. s%@IFILE1@%$IFILE1%g
  5028. s%@IFILE2@%$IFILE2%g
  5029. s%@DFILE3@%$DFILE3%g
  5030. s%@PFILE3@%$PFILE3%g
  5031. s%@DFILE4@%$DFILE4%g
  5032. s%@PFILE4@%$PFILE4%g
  5033. s%@DFILE5@%$DFILE5%g
  5034. s%@PFILE5@%$PFILE5%g
  5035. s%@DDOCS@%$DDOCS%g
  5036. s%@PDOCS@%$PDOCS%g
  5037. s%@HDOCS@%$HDOCS%g
  5038. s%@IDOCS@%$IDOCS%g
  5039. s%@CFDOCS@%$CFDOCS%g
  5040. s%@CPP@%$CPP%g
  5041. s%@EIGHTBIT@%$EIGHTBIT%g
  5042. s%@HOSTNAME@%$HOSTNAME%g
  5043.  
  5044. CEOF
  5045. EOF
  5046.  
  5047. cat >> $CONFIG_STATUS <<\EOF
  5048.  
  5049. # Split the substitutions into bite-sized pieces for seds with
  5050. # small command number limits, like on Digital OSF/1 and HP-UX.
  5051. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  5052. ac_file=1 # Number of current file.
  5053. ac_beg=1 # First line for current file.
  5054. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  5055. ac_more_lines=:
  5056. ac_sed_cmds=""
  5057. while $ac_more_lines; do
  5058.   if test $ac_beg -gt 1; then
  5059.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  5060.   else
  5061.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  5062.   fi
  5063.   if test ! -s conftest.s$ac_file; then
  5064.     ac_more_lines=false
  5065.     rm -f conftest.s$ac_file
  5066.   else
  5067.     if test -z "$ac_sed_cmds"; then
  5068.       ac_sed_cmds="sed -f conftest.s$ac_file"
  5069.     else
  5070.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  5071.     fi
  5072.     ac_file=`expr $ac_file + 1`
  5073.     ac_beg=$ac_end
  5074.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  5075.   fi
  5076. done
  5077. if test -z "$ac_sed_cmds"; then
  5078.   ac_sed_cmds=cat
  5079. fi
  5080. EOF
  5081.  
  5082. cat >> $CONFIG_STATUS <<EOF
  5083.  
  5084. CONFIG_FILES=\${CONFIG_FILES-"pub/Makefile doc/Makefile src/Makefile bin/Makefile contrib/Makefile \
  5085.     inputs/Makefile Makefile bin/cf-install doc/cfengine.8 \
  5086.     bin/cfmail bin/cfdaily bin/cfwrap contrib/cfdoc src/cflex.l"}
  5087. EOF
  5088. cat >> $CONFIG_STATUS <<\EOF
  5089. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  5090.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5091.   case "$ac_file" in
  5092.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  5093.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5094.   *) ac_file_in="${ac_file}.in" ;;
  5095.   esac
  5096.  
  5097.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  5098.  
  5099.   # Remove last slash and all that follows it.  Not all systems have dirname.
  5100.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5101.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5102.     # The file is in a subdirectory.
  5103.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  5104.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  5105.     # A "../" for each directory in $ac_dir_suffix.
  5106.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5107.   else
  5108.     ac_dir_suffix= ac_dots=
  5109.   fi
  5110.  
  5111.   case "$ac_given_srcdir" in
  5112.   .)  srcdir=.
  5113.       if test -z "$ac_dots"; then top_srcdir=.
  5114.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  5115.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  5116.   *) # Relative path.
  5117.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  5118.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  5119.   esac
  5120.  
  5121.   case "$ac_given_INSTALL" in
  5122.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  5123.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  5124.   esac
  5125.  
  5126.   echo creating "$ac_file"
  5127.   rm -f "$ac_file"
  5128.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  5129.   case "$ac_file" in
  5130.   *Makefile*) ac_comsub="1i\\
  5131. # $configure_input" ;;
  5132.   *) ac_comsub= ;;
  5133.   esac
  5134.  
  5135.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  5136.   sed -e "$ac_comsub
  5137. s%@configure_input@%$configure_input%g
  5138. s%@srcdir@%$srcdir%g
  5139. s%@top_srcdir@%$top_srcdir%g
  5140. s%@INSTALL@%$INSTALL%g
  5141. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  5142. fi; done
  5143. rm -f conftest.s*
  5144.  
  5145. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5146. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5147. #
  5148. # ac_d sets the value in "#define NAME VALUE" lines.
  5149. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  5150. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  5151. ac_dC='\3'
  5152. ac_dD='%g'
  5153. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  5154. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5155. ac_uB='\([     ]\)%\1#\2define\3'
  5156. ac_uC=' '
  5157. ac_uD='\4%g'
  5158. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5159. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5160. ac_eB='$%\1#\2define\3'
  5161. ac_eC=' '
  5162. ac_eD='%g'
  5163.  
  5164. if test "${CONFIG_HEADERS+set}" != set; then
  5165. EOF
  5166. cat >> $CONFIG_STATUS <<EOF
  5167.   CONFIG_HEADERS="src/conf.h"
  5168. EOF
  5169. cat >> $CONFIG_STATUS <<\EOF
  5170. fi
  5171. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  5172.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5173.   case "$ac_file" in
  5174.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  5175.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5176.   *) ac_file_in="${ac_file}.in" ;;
  5177.   esac
  5178.  
  5179.   echo creating $ac_file
  5180.  
  5181.   rm -f conftest.frag conftest.in conftest.out
  5182.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  5183.   cat $ac_file_inputs > conftest.in
  5184.  
  5185. EOF
  5186.  
  5187. # Transform confdefs.h into a sed script conftest.vals that substitutes
  5188. # the proper values into config.h.in to produce config.h.  And first:
  5189. # Protect against being on the right side of a sed subst in config.status.
  5190. # Protect against being in an unquoted here document in config.status.
  5191. rm -f conftest.vals
  5192. cat > conftest.hdr <<\EOF
  5193. s/[\\&%]/\\&/g
  5194. s%[\\$`]%\\&%g
  5195. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  5196. s%ac_d%ac_u%gp
  5197. s%ac_u%ac_e%gp
  5198. EOF
  5199. sed -n -f conftest.hdr confdefs.h > conftest.vals
  5200. rm -f conftest.hdr
  5201.  
  5202. # This sed command replaces #undef with comments.  This is necessary, for
  5203. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5204. # on some systems where configure will not decide to define it.
  5205. cat >> conftest.vals <<\EOF
  5206. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  5207. EOF
  5208.  
  5209. # Break up conftest.vals because some shells have a limit on
  5210. # the size of here documents, and old seds have small limits too.
  5211.  
  5212. rm -f conftest.tail
  5213. while :
  5214. do
  5215.   ac_lines=`grep -c . conftest.vals`
  5216.   # grep -c gives empty output for an empty file on some AIX systems.
  5217.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5218.   # Write a limited-size here document to conftest.frag.
  5219.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  5220.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  5221.   echo 'CEOF
  5222.   sed -f conftest.frag conftest.in > conftest.out
  5223.   rm -f conftest.in
  5224.   mv conftest.out conftest.in
  5225. ' >> $CONFIG_STATUS
  5226.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  5227.   rm -f conftest.vals
  5228.   mv conftest.tail conftest.vals
  5229. done
  5230. rm -f conftest.vals
  5231.  
  5232. cat >> $CONFIG_STATUS <<\EOF
  5233.   rm -f conftest.frag conftest.h
  5234.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  5235.   cat conftest.in >> conftest.h
  5236.   rm -f conftest.in
  5237.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  5238.     echo "$ac_file is unchanged"
  5239.     rm -f conftest.h
  5240.   else
  5241.     # Remove last slash and all that follows it.  Not all systems have dirname.
  5242.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5243.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5244.       # The file is in a subdirectory.
  5245.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  5246.     fi
  5247.     rm -f $ac_file
  5248.     mv conftest.h $ac_file
  5249.   fi
  5250. fi; done
  5251.  
  5252. EOF
  5253. cat >> $CONFIG_STATUS <<EOF
  5254.  
  5255. EOF
  5256. cat >> $CONFIG_STATUS <<\EOF
  5257.  
  5258. exit 0
  5259. EOF
  5260. chmod +x $CONFIG_STATUS
  5261. rm -fr confdefs* $ac_clean_files
  5262. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  5263.  
  5264.  
  5265. chmod 0755 bin/cfmail bin/cfdaily bin/cfwrap 
  5266.  
  5267. echo "$ac_t"""Configuration done. Run make to build cfengine."" 1>&6
  5268.  
  5269.